diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-23 22:58:06 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-23 22:58:06 +0000 |
commit | 2a553089c30fc3cda435ffef90bc3d2976d531d1 (patch) | |
tree | 36aaf69b6d024f83b070c4fe887bf75baecc5cb8 /clang/lib/Lex/PPLexerChange.cpp | |
parent | 10ed96bf094170f12a49ea5e6be2c43ac8640a18 (diff) | |
download | bcm5719-llvm-2a553089c30fc3cda435ffef90bc3d2976d531d1.tar.gz bcm5719-llvm-2a553089c30fc3cda435ffef90bc3d2976d531d1.zip |
[modules] Properly attribute macros to modules if they're in a file textually included into a file in the module.
llvm-svn: 235661
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index 33f5ff07f03..8a74a95ab3a 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -633,7 +633,7 @@ void Preprocessor::LeaveSubmodule() { for (auto *MD = Macro.second.getLatest(); MD != State.getLatest(); MD = MD->getPrevious()) { // Skip macros defined in other submodules we #included along the way. - Module *Mod = getModuleForLocation(MD->getLocation()); + Module *Mod = getModuleContainingLocation(MD->getLocation()); if (Mod != Info.M) continue; |