mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Prempt some obnoxious compiler from complaing about signed/unsigned
compares. 2^30 is actually the limit on the number of physical registers per TargetRegisterInfo.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0cc0929efc
commit
2559011a01
@ -155,14 +155,14 @@ struct SequenceOp : public SetTheory::Operator {
|
||||
From = II->getValue();
|
||||
else
|
||||
throw "From must be an integer: " + Expr->getAsString();
|
||||
if (From < 0 || From >= UINT_MAX)
|
||||
if (From < 0 || From >= (1 << 30))
|
||||
throw "From out of range";
|
||||
|
||||
if (IntInit *II = dynamic_cast<IntInit*>(Expr->arg_begin()[2]))
|
||||
To = II->getValue();
|
||||
else
|
||||
throw "From must be an integer: " + Expr->getAsString();
|
||||
if (To < 0 || To >= UINT_MAX)
|
||||
if (To < 0 || To >= (1 << 30))
|
||||
throw "To out of range";
|
||||
|
||||
RecordKeeper &Records =
|
||||
|
Loading…
x
Reference in New Issue
Block a user