Skip to content

Commit d338d15

Browse files
committed
[X86] Fix -Wunused-variable in X86InstrInfo.cpp (NFC)
llvm-project/llvm/lib/Target/X86/X86InstrInfo.cpp:3467:14: error: unused variable 'isMemOp' [-Werror,-Wunused-variable] 3467 | const auto isMemOp = [](const MCOperandInfo &OpInfo) -> bool { | ^~~~~~~ 1 error generated.
1 parent 59e5cb7 commit d338d15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/X86InstrInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,9 +3464,11 @@ bool X86::isX87Instruction(MachineInstr &MI) {
34643464
}
34653465

34663466
int X86::getFirstAddrOperandIdx(const MachineInstr &MI) {
3467+
#ifdef EXPENSIVE_CHECKS
34673468
const auto isMemOp = [](const MCOperandInfo &OpInfo) -> bool {
34683469
return OpInfo.OperandType == MCOI::OPERAND_MEMORY;
34693470
};
3471+
#endif
34703472

34713473
const MCInstrDesc &Desc = MI.getDesc();
34723474

0 commit comments

Comments
 (0)