diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-02-08 21:27:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-02-08 21:27:45 +0000 |
commit | dadd85dc0c84e183f6c2fc1af86a5c77c3feb3db (patch) | |
tree | 81ffb1ec27faca0e5f7f29a1a55ea11184dcb622 /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | dd2721842df7d972e75b308a1af47de889e96f6f (diff) | |
download | bcm5719-llvm-dadd85dc0c84e183f6c2fc1af86a5c77c3feb3db.tar.gz bcm5719-llvm-dadd85dc0c84e183f6c2fc1af86a5c77c3feb3db.zip |
Never cache the result of a module file lookup.
llvm-svn: 174744
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 5b2ab913fa0..7d34f85fd8b 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -203,7 +203,8 @@ GlobalModuleIndex::GlobalModuleIndex(FileManager &FileMgr, Dependencies(Record.begin() + Idx, Record.begin() + Idx + NumDeps); // Find the file. If we can't find it, ignore it. - const FileEntry *File = FileMgr.getFile(FileName); + const FileEntry *File = FileMgr.getFile(FileName, /*openFile=*/false, + /*cacheFailure=*/false); if (!File) { AnyOutOfDate = true; break; @@ -635,7 +636,9 @@ bool GlobalModuleIndexBuilder::loadModuleFile(const FileEntry *File) { Idx += Length; // Find the imported module file. - const FileEntry *DependsOnFile = FileMgr.getFile(ImportedFile); + const FileEntry *DependsOnFile + = FileMgr.getFile(ImportedFile, /*openFile=*/false, + /*cacheFailure=*/false); if (!DependsOnFile) return true; |