summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
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
commitb7d9ee707d911359673388c04f688a732e613cbb (patch)
treee200e07fe95300f6f35ccb916a673be9f7ec015b /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
parent962070d49c34c8a17c99e197f1c349190113eb34 (diff)
downloadbcm5719-llvm-b7d9ee707d911359673388c04f688a732e613cbb.tar.gz
bcm5719-llvm-b7d9ee707d911359673388c04f688a732e613cbb.zip
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.
llvm-svn: 142193
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index 02b966a2143..440d44c542a 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud