xcore: increase op_count in set_mem_access() only on register operand. bug reported by Ben Nagy

This commit is contained in:
Nguyen Anh Quynh 2015-06-06 12:30:14 +08:00
parent 968ec56c93
commit 22bc86f4fe
1 changed files with 2 additions and 2 deletions

View File

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