Explicitly clear the MI operand list when getInstruction() is called. Call MI.clear...
authorCameron Esfahani <dirty@apple.com>
Tue, 11 Aug 2015 01:15:07 +0000 (01:15 +0000)
committerCameron Esfahani <dirty@apple.com>
Tue, 11 Aug 2015 01:15:07 +0000 (01:15 +0000)
commit7ec94a3dea2cf5952db9c833a06d609b04257239
treea25e8baeaed50eab0f03dc23e313805a622ebc5f
parentf175a4758bace226b0cb6e2e682156c74166075c
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244557 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
lib/Target/X86/Disassembler/X86Disassembler.cpp
utils/TableGen/FixedLenDecoderEmitter.cpp