summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-05-19 23:49:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-05-19 23:49:00 +0000
commitcbf7d8a65a3609f63d056de82dcb52be535ecdfe (patch)
tree63fb634b0d828a214ea6cfdc7ad79d00a98c5c3a /clang/lib/Sema/SemaLookup.cpp
parent4971ed0fea413c50d1842862a2fc07fc78c97414 (diff)
downloadbcm5719-llvm-cbf7d8a65a3609f63d056de82dcb52be535ecdfe.tar.gz
bcm5719-llvm-cbf7d8a65a3609f63d056de82dcb52be535ecdfe.zip
Remove last (unnecessary) use of mapping from SourceLocation to Module and
remove the mechanism for doing so. This mechanism was incorrect in the presence of preprocessed modules (and #pragma clang module begin/end). llvm-svn: 303469
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 66c10093d9e..678817f0299 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -4987,8 +4987,8 @@ void Sema::diagnoseMissingImport(SourceLocation UseLoc, NamedDecl *Decl,
Diag(UseLoc, diag::err_module_unimported_use_multiple)
<< (int)MIK << Decl << ModuleList;
- } else if (const FileEntry *E =
- PP.getModuleHeaderToIncludeForDiagnostics(UseLoc, DeclLoc)) {
+ } else if (const FileEntry *E = PP.getModuleHeaderToIncludeForDiagnostics(
+ UseLoc, Modules[0], DeclLoc)) {
// The right way to make the declaration visible is to include a header;
// suggest doing so.
//
OpenPOWER on IntegriCloud