[llvm] e72d715 - Fix buildbot failure after D112940
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 2 16:20:18 PST 2022
Author: Jessica Paquette
Date: 2022-02-02T16:20:06-08:00
New Revision: e72d715079515525aa27e9c085d5659a0d61177c
URL: https://github.com/llvm/llvm-project/commit/e72d715079515525aa27e9c085d5659a0d61177c
DIFF: https://github.com/llvm/llvm-project/commit/e72d715079515525aa27e9c085d5659a0d61177c.diff
LOG: Fix buildbot failure after D112940
Change a type from `int64_t` to `long long` to make a buildbot happy.
https://lab.llvm.org/buildbot/#/builders/196/builds/7371
```
error: no matching function for call to 'getAsSignedInteger'
if (getAsSignedInteger(ValStr, 0, Val))
```
Worked With My Compiler (TM)
Added:
Modified:
llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-remark-size-
diff /RemarkSizeDiff.cpp b/llvm/tools/llvm-remark-size-
diff /RemarkSizeDiff.cpp
index b49930f08089f..5fdf933078d19 100644
--- a/llvm/tools/llvm-remark-size-
diff /RemarkSizeDiff.cpp
+++ b/llvm/tools/llvm-remark-size-
diff /RemarkSizeDiff.cpp
@@ -236,13 +236,13 @@ static Expected<int64_t> getIntValFromKey(const remarks::Remark &Remark,
inconvertibleErrorCode(),
Twine("Unexpected key at argument index " + std::to_string(ArgIdx) +
": Expected '" + ExpectedKeyName + "', got '" + KeyName + "'"));
- int64_t Val;
+ long long Val;
auto ValStr = Remark.Args[ArgIdx].Val;
if (getAsSignedInteger(ValStr, 0, Val))
return createStringError(
inconvertibleErrorCode(),
Twine("Could not convert string to signed integer: " + ValStr));
- return Val;
+ return static_cast<int64_t>(Val);
}
/// Collects relevant size information from \p Remark if it is an size-related
More information about the llvm-commits
mailing list