mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-25 05:15:58 +00:00
Fix a bug in the case that there is no add or subtract symbol and the offset
value is zero so it does not add a NULL expr operand. llvm-svn: 130330
This commit is contained in:
parent
4e15bcfe01
commit
dbc7221170
@ -3800,8 +3800,12 @@ bool ARMBasicMCBuilder::tryAddingSymbolicOperand(uint64_t Value,
|
||||
Expr = MCBinaryExpr::CreateAdd(Add, Off, *Ctx);
|
||||
else
|
||||
Expr = Add;
|
||||
} else
|
||||
Expr = Off;
|
||||
} else {
|
||||
if (Off != 0)
|
||||
Expr = Off;
|
||||
else
|
||||
Expr = MCConstantExpr::Create(0, *Ctx);
|
||||
}
|
||||
|
||||
if (SymbolicOp.VariantKind == LLVMDisassembler_VariantKind_ARM_HI16)
|
||||
MI.addOperand(MCOperand::CreateExpr(ARMMCExpr::CreateUpper16(Expr, *Ctx)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user