mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -260,7 +260,7 @@ public:
|
|||||||
// the difference?
|
// the difference?
|
||||||
if (Mem.Offset) {
|
if (Mem.Offset) {
|
||||||
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Mem.Offset);
|
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Mem.Offset);
|
||||||
assert (CE && "non-constant mode 5 offset operand!");
|
assert(CE && "non-constant mode 5 offset operand!");
|
||||||
// The MCInst offset operand doesn't include the low two bits (like
|
// The MCInst offset operand doesn't include the low two bits (like
|
||||||
// the instruction encoding).
|
// the instruction encoding).
|
||||||
Inst.addOperand(MCOperand::CreateImm(CE->getValue() / 4));
|
Inst.addOperand(MCOperand::CreateImm(CE->getValue() / 4));
|
||||||
|
Reference in New Issue
Block a user