diff --git a/llvm/lib/FileCheck/FileCheck.cpp b/llvm/lib/FileCheck/FileCheck.cpp --- a/llvm/lib/FileCheck/FileCheck.cpp +++ b/llvm/lib/FileCheck/FileCheck.cpp @@ -121,12 +121,12 @@ ExpressionFormat::valueFromStringRepr(StringRef StrVal, const SourceMgr &SM) const { bool ValueIsSigned = Value == Kind::Signed; - StringRef OverflowErrorStr = "unable to represent numeric value"; + StringRef IntegerParseErrorStr = "unable to represent numeric value"; if (ValueIsSigned) { int64_t SignedValue; if (StrVal.getAsInteger(10, SignedValue)) - return ErrorDiagnostic::get(SM, StrVal, OverflowErrorStr); + return ErrorDiagnostic::get(SM, StrVal, IntegerParseErrorStr); return ExpressionValue(SignedValue); } @@ -134,7 +134,7 @@ bool Hex = Value == Kind::HexUpper || Value == Kind::HexLower; uint64_t UnsignedValue; if (StrVal.getAsInteger(Hex ? 16 : 10, UnsignedValue)) - return ErrorDiagnostic::get(SM, StrVal, OverflowErrorStr); + return ErrorDiagnostic::get(SM, StrVal, IntegerParseErrorStr); return ExpressionValue(UnsignedValue); }