Do not use translateFile, because it pulls in parts of the pch.

This commit is contained in:
Vassil Vassilev 2014-04-14 20:13:14 +02:00 committed by sftnight
parent c46a539b2f
commit 3d0ba9aed3

View File

@ -473,11 +473,10 @@ namespace clang {
DeclUnloader::~DeclUnloader() {
SourceManager& SM = m_Sema->getSourceManager();
for (FileIDs::iterator I = m_FilesToUncache.begin(),
for (FileIDs::iterator I = m_FilesToUncache.begin(),
E = m_FilesToUncache.end(); I != E; ++I) {
// We need to reset the cache
if (const FileEntry* entry = SM.getFileEntryForID(*I))
SM.invalidateCache(const_cast<FileEntry*>(entry));
SM.invalidateCache(*I);
}
// Clean up the pending instantiations