summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-17 16:56:47 +0000
committerOwen Anderson <resistor@mac.com>2011-10-17 16:56:47 +0000
commit684dfcf724e5c9853c04cbc86d7a3fd2a1315d08 (patch)
tree1877b2099334913c3d62de8eee2f57496d2e8466 /utils
parentaf482cf301cf35eebb3a67a3540e16b102b92246 (diff)
downloadllvm-684dfcf724e5c9853c04cbc86d7a3fd2a1315d08.tar.gz
llvm-684dfcf724e5c9853c04cbc86d7a3fd2a1315d08.tar.bz2
llvm-684dfcf724e5c9853c04cbc86d7a3fd2a1315d08.tar.xz
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 02b966a214..440d44c542 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -576,8 +576,11 @@ void FilterChooser::emitTop(raw_ostream &o, unsigned Indentation,
"static MCDisassembler::DecodeStatus decode" << Namespace << "Instruction" << BitWidth
<< "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, "
<< "const void *Decoder, const MCSubtargetInfo &STI) {\n";
- o.indent(Indentation) << " unsigned tmp = 0;\n (void)tmp;\n" << Emitter->Locals << "\n";
+ o.indent(Indentation) << " unsigned tmp = 0;\n";
+ o.indent(Indentation) << " (void)tmp;\n";
+ o.indent(Indentation) << Emitter->Locals << "\n";
o.indent(Indentation) << " uint64_t Bits = STI.getFeatureBits();\n";
+ o.indent(Indentation) << " (void)Bits;\n";
++Indentation; ++Indentation;
// Emits code to decode the instructions.