projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Explicitly clear the MI operand list when getInstruction() is called. Call MI.clear...
[oota-llvm.git]
/
lib
/
Target
/
X86
/
Disassembler
/
X86Disassembler.cpp
diff --git
a/lib/Target/X86/Disassembler/X86Disassembler.cpp
b/lib/Target/X86/Disassembler/X86Disassembler.cpp
index cfc3ee2fb08fe67d95b0e1e167424589892af441..e920450732ee87e17a662d5d085de2fdd8933733 100644
(file)
--- a/
lib/Target/X86/Disassembler/X86Disassembler.cpp
+++ b/
lib/Target/X86/Disassembler/X86Disassembler.cpp
@@
-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