From 1c7136e9baca954d8f28caab977e1a0d7b092841 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Sat, 14 Oct 2017 01:51:46 +0000 Subject: [PATCH] [globalisel][tablegen] Fix an unused variable warning caused by a typo (corrected OtherInsnID->OtherOpIdx). The tests were passing by luck since the instruction ID and operand index happened to be the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315788 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h b/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h index d2da152cf39..f1bc8484096 100644 --- a/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h +++ b/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h @@ -345,7 +345,7 @@ bool InstructionSelector::executeMatchTable( assert(State.MIs[InsnID] != nullptr && "Used insn before defined"); assert(State.MIs[OtherInsnID] != nullptr && "Used insn before defined"); if (!State.MIs[InsnID]->getOperand(OpIdx).isIdenticalTo( - State.MIs[OtherInsnID]->getOperand(OtherInsnID))) { + State.MIs[OtherInsnID]->getOperand(OtherOpIdx))) { if (handleReject() == RejectAndGiveUp) return false; } -- 2.50.1