summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Pragma.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-25 04:40:03 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-25 04:40:03 +0000
commitdaa69e00f5c49893844def565a67f75d7b77a6e3 (patch)
tree84e28d0f95e59f71c351091689f89988a7d07d06 /clang/lib/Lex/Pragma.cpp
parentbf32f773ccd4f200228259ef32249ad0bc7838a6 (diff)
downloadbcm5719-llvm-daa69e00f5c49893844def565a67f75d7b77a6e3.tar.gz
bcm5719-llvm-daa69e00f5c49893844def565a67f75d7b77a6e3.zip
[modules] Substantially improve handling of #undef:
* Track override set across module load and save * Track originating module to allow proper re-export of #undef * Make override set properly transitive when it picks up a #undef This fixes nearly all of the remaining macro issues with self-host. llvm-svn: 213922
Diffstat (limited to 'clang/lib/Lex/Pragma.cpp')
-rw-r--r--clang/lib/Lex/Pragma.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Pragma.cpp b/clang/lib/Lex/Pragma.cpp
index a5f1a62a708..6a8b0a6bd31 100644
--- a/clang/lib/Lex/Pragma.cpp
+++ b/clang/lib/Lex/Pragma.cpp
@@ -605,7 +605,7 @@ void Preprocessor::HandlePragmaPopMacro(Token &PopMacroTok) {
if (MacroToReInstall) {
// Reinstall the previously pushed macro.
appendDefMacroDirective(IdentInfo, MacroToReInstall, MessageLoc,
- /*isImported=*/false);
+ /*isImported=*/false, /*Overrides*/None);
}
// Pop PragmaPushMacroInfo stack.
OpenPOWER on IntegriCloud