aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2023-08-10 11:27:08 -0700
committerVolodymyr Sapsai <vsapsai@apple.com>2023-08-10 11:27:08 -0700
commit91b10f69740ec91ca80ec45323d9807c39252334 (patch)
treead5a8dbe11cd0fdf888a927bdc0e680f2eb1a0a1 /clang/lib/Lex/HeaderSearch.cpp
parentd21ec35dcf3c351395522807beac0f45b7bcf6b9 (diff)
downloadllvm-91b10f69740ec91ca80ec45323d9807c39252334.zip
llvm-91b10f69740ec91ca80ec45323d9807c39252334.tar.gz
llvm-91b10f69740ec91ca80ec45323d9807c39252334.tar.bz2
Revert "[modules] Fix error about the same module being defined in different .pcm files when using VFS overlays."
This reverts commit 97dfaf4cd27814bdf9aa9d2eafc21fdb4f76c56d. llvm-clang-x86_64-sie-win buildbot is failing with the added test.
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r--clang/lib/Lex/HeaderSearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp
index 80e1bad..f42d51d 100644
--- a/clang/lib/Lex/HeaderSearch.cpp
+++ b/clang/lib/Lex/HeaderSearch.cpp
@@ -177,7 +177,7 @@ std::string HeaderSearch::getCachedModuleFileName(Module *Module) {
// *.modulemap file. In this case, just return an empty string.
if (!ModuleMap)
return {};
- return getCachedModuleFileName(Module->Name, ModuleMap->getNameAsRequested());
+ return getCachedModuleFileName(Module->Name, ModuleMap->getName());
}
std::string HeaderSearch::getPrebuiltModuleFileName(StringRef ModuleName,