Explicitly clear the MI operand list when getInstruction() is called. Call MI.clear...
[oota-llvm.git] / lib / Target / X86 / Disassembler / X86Disassembler.cpp
index cfc3ee2fb08fe67d95b0e1e167424589892af441..e920450732ee87e17a662d5d085de2fdd8933733 100644 (file)
@@ -962,6 +962,7 @@ static bool translateInstruction(MCInst &mcInst,
     return true;
   }
 
+  mcInst.clear();
   mcInst.setOpcode(insn.instructionID);
   // If when reading the prefix bytes we determined the overlapping 0xf2 or 0xf3
   // prefix bytes should be disassembled as xrelease and xacquire then set the