[PATCH] D11665: Explicitly clear the MCInst operand list when calling the target disassembler. Otherwise, repeatedly passing in the same MCInst to getInstruction() will append the current instruction's operands to the previous instruction's operands.

Ulrich Weigand ulrich.weigand at de.ibm.com
Fri Jul 31 03:41:10 PDT 2015


uweigand added a comment.

Wouldn't it be preferable to do the MI.clear() *within* decodeInstruction?   It seems odd to define the interface so that every caller must call clear() itself ...


http://reviews.llvm.org/D11665







More information about the llvm-commits mailing list