Skip to content

Commit

Permalink
xcore: increase op_count in set_mem_access() only on register operand…
Browse files Browse the repository at this point in the history
…. bug reported by Ben Nagy
  • Loading branch information
aquynh committed Jun 6, 2015
1 parent 3dc31d2 commit 2a8091b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/XCore/XCoreInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ static void set_mem_access(MCInst *MI, bool status, int reg)
} else {
if (reg) {
MI->flat_insn->detail->xcore.operands[MI->flat_insn->detail->xcore.op_count].mem.index = reg;
// done, create the next operand slot
MI->flat_insn->detail->xcore.op_count++;
}
// done, create the next operand slot
MI->flat_insn->detail->xcore.op_count++;
}
}

Expand Down

0 comments on commit 2a8091b

Please sign in to comment.