aboutsummaryrefslogtreecommitdiff
path: root/Lex/Pragma.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Lex/Pragma.cpp')
-rw-r--r--Lex/Pragma.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lex/Pragma.cpp b/Lex/Pragma.cpp
index 4d90e31c64..89725ae8e9 100644
--- a/Lex/Pragma.cpp
+++ b/Lex/Pragma.cpp
@@ -210,7 +210,7 @@ void Preprocessor::HandlePragmaPoison(Token &PoisonTok) {
if (II->isPoisoned()) continue;
// If this is a macro identifier, emit a warning.
- if (II->getMacroInfo())
+ if (II->hasMacroDefinition())
Diag(Tok, diag::pp_poisoning_existing_macro);
// Finally, poison it!