mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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
This commit is contained in:
parent
af482cf301
commit
684dfcf724
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user