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:
Andrew Lenharth 2006-05-17 19:24:31 +00:00
parent 1a93f1c0ea
commit 3aa92e4e00

View File

@ -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);
}