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)
This commit is contained in:
Jessica Paquette 2022-02-02 16:16:49 -08:00
parent 5ecbcc207c
commit e72d715079
1 changed files with 2 additions and 2 deletions

View 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