diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h --- a/llvm/include/llvm/ADT/StringExtras.h +++ b/llvm/include/llvm/ADT/StringExtras.h @@ -245,7 +245,7 @@ inline std::string itostr(int64_t X) { if (X < 0) - return utostr(static_cast(-X), true); + return utostr(-static_cast(X), true); else return utostr(static_cast(X)); }