summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 0a7d2dba78f..2a33531b641 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -977,7 +977,7 @@ void Preprocessor::HandleDefineDirective(Token &DefineTok) {
if (!MI->isIdenticalTo(*OtherMI, *this)) {
Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef)
<< MacroNameTok.getIdentifierInfo();
- Diag(OtherMI->getDefinitionLoc(), diag::ext_pp_macro_redef2);
+ Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition);
}
delete OtherMI;
}
OpenPOWER on IntegriCloud