[llvm] 7b1e1fc - [MC] Don't capitalize a floating point diagnostic
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue May 4 13:40:31 PDT 2021
Author: Fangrui Song
Date: 2021-05-04T13:40:26-07:00
New Revision: 7b1e1fccb02af234cca44d84bfb045faef9e21c8
URL: https://github.com/llvm/llvm-project/commit/7b1e1fccb02af234cca44d84bfb045faef9e21c8
DIFF: https://github.com/llvm/llvm-project/commit/7b1e1fccb02af234cca44d84bfb045faef9e21c8.diff
LOG: [MC] Don't capitalize a floating point diagnostic
Added:
Modified:
llvm/lib/MC/MCParser/AsmLexer.cpp
llvm/test/MC/AsmParser/floating-literals.s
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCParser/AsmLexer.cpp b/llvm/lib/MC/MCParser/AsmLexer.cpp
index 28aa5631afe8..9d97837d0f60 100644
--- a/llvm/lib/MC/MCParser/AsmLexer.cpp
+++ b/llvm/lib/MC/MCParser/AsmLexer.cpp
@@ -80,7 +80,7 @@ AsmToken AsmLexer::LexFloatLiteral() {
++CurPtr;
if (*CurPtr == '-' || *CurPtr == '+')
- return ReturnError(CurPtr, "Invalid sign in float literal");
+ return ReturnError(CurPtr, "invalid sign in float literal");
// Check for exponent
if ((*CurPtr == 'e' || *CurPtr == 'E')) {
diff --git a/llvm/test/MC/AsmParser/floating-literals.s b/llvm/test/MC/AsmParser/floating-literals.s
index d424aa1be344..0d622771102c 100644
--- a/llvm/test/MC/AsmParser/floating-literals.s
+++ b/llvm/test/MC/AsmParser/floating-literals.s
@@ -88,7 +88,7 @@
# CHECK-ERROR: :[[#@LINE+1]]:12: error: unexpected token
.double 1e1e
-# CHECK-ERROR: :[[#@LINE+1]]:9: error: Invalid sign in float literal
+# CHECK-ERROR: :[[#@LINE+1]]:9: error: invalid sign in float literal
.double 2.+1
# CHECK: .long 1310177520
More information about the llvm-commits
mailing list