Do not use translateFile, because it pulls in parts of the pch.
This commit is contained in:
parent
c46a539b2f
commit
3d0ba9aed3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user