diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-15 00:34:15 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-15 00:34:15 +0000 |
commit | 3938f0c728b483fdb1123e7e756c81816d653892 (patch) | |
tree | d628638a6f5ff6f1fb46fd92124ca56b0099b9d7 /clang/lib/Lex | |
parent | 297ae311cebbf250590e70749a5021174cd41545 (diff) | |
download | bcm5719-llvm-3938f0c728b483fdb1123e7e756c81816d653892.tar.gz bcm5719-llvm-3938f0c728b483fdb1123e7e756c81816d653892.zip |
[modules] Stop dropping 'module.timestamp' files into the current directory
when building with implicit modules disabled.
llvm-svn: 245136
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 5282e8d42e8..eea47198d64 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -129,10 +129,10 @@ std::string HeaderSearch::getModuleFileName(StringRef ModuleName, StringRef ModuleMapPath) { // If we don't have a module cache path or aren't supposed to use one, we // can't do anything. - if (ModuleCachePath.empty() || !LangOpts.ImplicitModules) + if (getModuleCachePath().empty()) return std::string(); - SmallString<256> Result(ModuleCachePath); + SmallString<256> Result(getModuleCachePath()); llvm::sys::fs::make_absolute(Result); if (HSOpts->DisableModuleHash) { |