Fix unused variable warning in the rare circumstance that we have no feature-dependen...
authorOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 16:56:47 +0000 (16:56 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 16:56:47 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142193 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FixedLenDecoderEmitter.cpp

index 02b966a21431e1264182555772e412801c7cae93..440d44c542a355b17bf82904e38cb28232ae4688 100644 (file)
@@ -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.