Fix build breakage due to typo in cast.

llvm-svn: 282183
This commit is contained in:
Zachary Turner 2016-09-22 19:21:32 +00:00
parent 8dacca943a
commit aec851ce9a
2 changed files with 3 additions and 1 deletions

View File

@ -426,7 +426,7 @@ namespace llvm {
consumeInteger(unsigned Radix, T &Result) {
unsigned long long ULLVal;
if (consumeUnsignedInteger(*this, Radix, ULLVal) ||
static_cast<long long>(static_cast<T>(ULLVal)) != ULLVal)
static_cast<unsigned long long>(static_cast<T>(ULLVal)) != ULLVal)
return true;
Result = ULLVal;
return false;

View File

@ -580,6 +580,8 @@ static const char* BadStrings[] = {
, "08" // illegal oct characters
, "0o8" // illegal oct characters
, "-123" // negative unsigned value
, "0x"
, "0b"
};