change calls to getMacroInfo into hasMacroDefinition() where possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42726 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Lex/Pragma.cpp b/Lex/Pragma.cpp
index 4d90e31..89725ae 100644
--- a/Lex/Pragma.cpp
+++ b/Lex/Pragma.cpp
@@ -210,7 +210,7 @@
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!