From 3938f0c728b483fdb1123e7e756c81816d653892 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 15 Aug 2015 00:34:15 +0000 Subject: [modules] Stop dropping 'module.timestamp' files into the current directory when building with implicit modules disabled. llvm-svn: 245136 --- clang/lib/Lex/HeaderSearch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Lex/HeaderSearch.cpp') 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) { -- cgit v1.2.3