summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2015-08-11 01:15:07 +0000
committerCameron Esfahani <dirty@apple.com>2015-08-11 01:15:07 +0000
commitf97999dc4631acf35aa0b6050df0e056bc4bfabb (patch)
tree4e02b307b2c338dda76a0c2ff70a759f1c0ef725 /llvm/lib/Target/PowerPC
parent65061a293bfcce1c64a6cbf8d2fd56f7019a8911 (diff)
downloadbcm5719-llvm-f97999dc4631acf35aa0b6050df0e056bc4bfabb.tar.gz
bcm5719-llvm-f97999dc4631acf35aa0b6050df0e056bc4bfabb.zip
Explicitly clear the MI operand list when getInstruction() is called. Call MI.clear() within MCD::OPC_Decode case and inside of translateInstruction() for the X86 target. Remove now unnecessary MI.clear() from ARMDisassembler.
Summary: Explicitly clear the MI operand list when getInstruction() is called. Reviewers: hfinkel, t.p.northover, hvarga, kparzysz, jyknight, qcolombet, uweigand Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11665 llvm-svn: 244557
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
index 93a503c3758..1fc84fb7655 100644
--- a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
+++ b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
@@ -401,8 +401,6 @@ DecodeStatus PPCDisassembler::getInstruction(MCInst &MI, uint64_t &Size,
decodeInstruction(DecoderTableQPX32, MI, Inst, Address, this, STI);
if (result != MCDisassembler::Fail)
return result;
-
- MI.clear();
}
return decodeInstruction(DecoderTable32, MI, Inst, Address, this, STI);
OpenPOWER on IntegriCloud