diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-11-12 07:36:50 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-11-12 07:36:50 +0000 |
| commit | 71a51ff10ee175f3dadc40062950a8110ce4e832 (patch) | |
| tree | 4da2d7ac6dba2fb7db172a8fa4b5054646375488 /clang/lib/Lex | |
| parent | bc29e0b27c4d674e04d6ca5c1fadd644809b4278 (diff) | |
| download | bcm5719-llvm-71a51ff10ee175f3dadc40062950a8110ce4e832.tar.gz bcm5719-llvm-71a51ff10ee175f3dadc40062950a8110ce4e832.zip | |
Use %select to merge two diagnostics that only differ in one word and are emitted in the same place. NFC
llvm-svn: 252861
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/LiteralSupport.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp index 1a1b281bd91..6a112d63b0c 100644 --- a/clang/lib/Lex/LiteralSupport.cpp +++ b/clang/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; } |

