diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-11-26 02:04:16 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-11-26 02:04:16 +0000 |
commit | a8cfffa3519c11b0eee26a5d1ff9e4a34d46e73b (patch) | |
tree | 7fbaa889132819c58e1786928937d540890154f5 /clang/lib/Basic/FileManager.cpp | |
parent | 72734bffaa2e25b1d5bbc4a7a05a22f944d6bf04 (diff) | |
download | bcm5719-llvm-a8cfffa3519c11b0eee26a5d1ff9e4a34d46e73b.tar.gz bcm5719-llvm-a8cfffa3519c11b0eee26a5d1ff9e4a34d46e73b.zip |
[modules] Refactor handling of -fmodules-embed-*. Track this properly rather
than reusing the "overridden buffer" mechanism. This will allow us to make
embedded files and overridden files behave differently in future.
llvm-svn: 254121
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 8a523d26dec..137ff6e6587 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -137,7 +137,7 @@ void FileManager::addAncestorsAsVirtualDirs(StringRef Path) { // at the same time. Therefore, if DirName is already in the cache, // we don't need to recurse as its ancestors must also already be in // the cache. - if (NamedDirEnt.second) + if (NamedDirEnt.second && NamedDirEnt.second != NON_EXISTENT_DIR) return; // Add the virtual directory to the cache. |