summaryrefslogtreecommitdiff
path: root/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-11-12 07:36:50 +0000
committerCraig Topper <craig.topper@gmail.com>2015-11-12 07:36:50 +0000
commit8b70fa6b492dcaef04bf7be45677e2224691b3be (patch)
treed9a18bf336f1a2dd2cf49148796b53f3bf8b1840 /lib/Lex/LiteralSupport.cpp
parent60de3632d22ca52fab67d5d8b13af6824e16c98a (diff)
downloadclang-8b70fa6b492dcaef04bf7be45677e2224691b3be.tar.gz
Use %select to merge two diagnostics that only differ in one word and are emitted in the same place. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r--lib/Lex/LiteralSupport.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp
index 1a1b281bd9..6a112d63b0 100644
--- a/lib/Lex/LiteralSupport.cpp
+++ b/lib/Lex/LiteralSupport.cpp
@@ -680,9 +680,8 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling,
// Report an error if there are any.
PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, SuffixBegin - ThisTokBegin),
- isFPConstant ? diag::err_invalid_suffix_float_constant :
- diag::err_invalid_suffix_integer_constant)
- << StringRef(SuffixBegin, ThisTokEnd-SuffixBegin);
+ diag::err_invalid_suffix_constant)
+ << StringRef(SuffixBegin, ThisTokEnd-SuffixBegin) << isFPConstant;
hadError = true;
return;
}