Skip to content

Commit f38ce27

Browse files
committed
[X86] Fix an unused variable warning (NFC)
/llvm-project/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:3090:7: error: unused variable 'IndexType' [-Werror,-Wunused-variable] EVT IndexType = Index.getValueType(); ^ 1 error generated.
1 parent 3963d21 commit f38ce27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,7 @@ bool X86DAGToDAGISel::selectLEA64_Addr(SDValue N, SDValue &Base, SDValue &Scale,
30873087
Base = CurDAG->getTargetInsertSubreg(SubReg, DL, MVT::i64, ImplDef, Base);
30883088
}
30893089

3090-
EVT IndexType = Index.getValueType();
3090+
[[maybe_unused]] EVT IndexType = Index.getValueType();
30913091
RN = dyn_cast<RegisterSDNode>(Index);
30923092
if (RN && RN->getReg() == 0)
30933093
Index = CurDAG->getRegister(0, MVT::i64);

0 commit comments

Comments
 (0)