forked from OSchip/llvm-project
parent
8dacca943a
commit
aec851ce9a
|
@ -426,7 +426,7 @@ namespace llvm {
|
||||||
consumeInteger(unsigned Radix, T &Result) {
|
consumeInteger(unsigned Radix, T &Result) {
|
||||||
unsigned long long ULLVal;
|
unsigned long long ULLVal;
|
||||||
if (consumeUnsignedInteger(*this, Radix, 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;
|
return true;
|
||||||
Result = ULLVal;
|
Result = ULLVal;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -580,6 +580,8 @@ static const char* BadStrings[] = {
|
||||||
, "08" // illegal oct characters
|
, "08" // illegal oct characters
|
||||||
, "0o8" // illegal oct characters
|
, "0o8" // illegal oct characters
|
||||||
, "-123" // negative unsigned value
|
, "-123" // negative unsigned value
|
||||||
|
, "0x"
|
||||||
|
, "0b"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue