mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-06 09:39:28 +00:00
Added sanity check for obviously bogus immediates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a93f1c0ea
commit
3aa92e4e00
@ -82,6 +82,7 @@ void AlphaAsmPrinter::printOperand(const MachineInstr *MI, int opNum)
|
||||
O << TM.getRegisterInfo()->get(MO.getReg()).Name;
|
||||
} else if (MO.isImmediate()) {
|
||||
O << MO.getImmedValue();
|
||||
assert(MO.getImmedValue() < (1 << 30));
|
||||
} else {
|
||||
printOp(MO);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user