mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user