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