diff options
author | Cameron Esfahani <dirty@apple.com> | 2015-08-11 01:15:07 +0000 |
---|---|---|
committer | Cameron Esfahani <dirty@apple.com> | 2015-08-11 01:15:07 +0000 |
commit | f97999dc4631acf35aa0b6050df0e056bc4bfabb (patch) | |
tree | 4e02b307b2c338dda76a0c2ff70a759f1c0ef725 /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | |
parent | 65061a293bfcce1c64a6cbf8d2fd56f7019a8911 (diff) | |
download | bcm5719-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/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp index cbf40a90b4d..791e853c025 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -2170,6 +2170,7 @@ static void emitDecodeInstruction(formatted_raw_ostream &OS) { << " unsigned DecodeIdx = decodeULEB128(Ptr, &Len);\n" << " Ptr += Len;\n" << "\n" + << " MI.clear();\n" << " MI.setOpcode(Opc);\n" << " bool DecodeComplete;\n" << " S = decodeToMCInst(S, DecodeIdx, insn, MI, Address, DisAsm, DecodeComplete);\n" |