aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Lex/PPMacroExpansion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp
index 7901705fec..6379144885 100644
--- a/lib/Lex/PPMacroExpansion.cpp
+++ b/lib/Lex/PPMacroExpansion.cpp
@@ -377,6 +377,9 @@ bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
}
}
+ // FIXME: Temporarily disable this warning that is currently bogus with a PCH
+ // that redefined a macro without undef'ing it first (test/PCH/macro-redef.c).
+#if 0
// If the macro definition is ambiguous, complain.
if (MI->isAmbiguous()) {
Diag(Identifier, diag::warn_pp_ambiguous_macro)
@@ -392,6 +395,7 @@ bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
}
}
}
+#endif
// If we started lexing a macro, enter the macro expansion body.