aboutsummaryrefslogtreecommitdiff
path: root/Lex/Pragma.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-07 08:04:56 +0000
committerChris Lattner <sabre@nondot.org>2007-10-07 08:04:56 +0000
commit0edde55077cc3cb9fffeba19f5936f05a68c8e2b (patch)
tree1720ab38e92d73fba41b8f3195f55f6c1831e1b6 /Lex/Pragma.cpp
parent9c46de446d18f4a28446cb798d4131bd05515699 (diff)
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
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!