[llvm] 75b989e - [Support] Remove an unnecessary cast (NFC) (#147548)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 12:47:26 PDT 2025
Author: Kazu Hirata
Date: 2025-07-08T12:47:23-07:00
New Revision: 75b989ec73ea7645e9044fd03929663cea12b964
URL: https://github.com/llvm/llvm-project/commit/75b989ec73ea7645e9044fd03929663cea12b964
DIFF: https://github.com/llvm/llvm-project/commit/75b989ec73ea7645e9044fd03929663cea12b964.diff
LOG: [Support] Remove an unnecessary cast (NFC) (#147548)
I is already of int64_t.
Added:
Modified:
llvm/lib/Support/JSON.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/JSON.cpp b/llvm/lib/Support/JSON.cpp
index e7b762f550d46..d8662340cb3ed 100644
--- a/llvm/lib/Support/JSON.cpp
+++ b/llvm/lib/Support/JSON.cpp
@@ -516,7 +516,7 @@ bool Parser::parseNumber(char First, Value &Out) {
errno = 0;
int64_t I = std::strtoll(S.c_str(), &End, 10);
if (End == S.end() && errno != ERANGE) {
- Out = int64_t(I);
+ Out = I;
return true;
}
// strtroull has a special handling for negative numbers, but in this
More information about the llvm-commits
mailing list