Skip to content

Commit

Permalink
Fix LLVM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 5, 2023
1 parent 9eb1fe1 commit d64f749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ARM/ARMInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static void printInst(MCInst *MI, SStream *O, void *info)

case ARM_LDR_POST_IMM:
if (MCOperand_getReg(MCInst_getOperand(MI, (2))) == ARM_SP &&
MCOperand_getImm(MCInst_getOperand(MI, (4))) == 4) {
ARM_AM_getAM2Offset(MCOperand_getImm(MCInst_getOperand(MI, (4)))) == 4) {
SStream_concat0(O, "pop");
printPredicateOperand(MI, 5, O);
SStream_concat0(O, " {");
Expand Down
2 changes: 1 addition & 1 deletion arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static void ARM_add_not_defined_ops(MCInst *MI) {
break;
case ARM_LDR_POST_IMM:
if (MCOperand_getReg(MCInst_getOperand(MI, (2))) == ARM_SP &&
MCOperand_getImm(MCInst_getOperand(MI, (4))) == 4)
ARM_AM_getAM2Offset(MCOperand_getImm(MCInst_getOperand(MI, (4)))) == 4)
MI->flat_insn->id = ARM_INS_POP;
break;
case ARM_VSTMSDB_UPD:
Expand Down

0 comments on commit d64f749

Please sign in to comment.