Fix buildbot failure after D112940
authorJessica Paquette <jpaquette@apple.com>
Thu, 3 Feb 2022 00:16:49 +0000 (16:16 -0800)
committerJessica Paquette <jpaquette@apple.com>
Thu, 3 Feb 2022 00:20:06 +0000 (16:20 -0800)
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)

llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp

index b49930f..5fdf933 100644 (file)
@@ -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