Skip to content

Commit b12c103

Browse files
DamonFoolyuxuanchen1997
authored andcommitted
[CodeGen] Fix -Wunused-variable in SelectionDAG.cpp (NFC)
Summary: /llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7560:9: error: unused variable 'VecVT' [-Werror,-Wunused-variable] EVT VecVT = N1.getValueType(); ^ 1 error generated. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251014
1 parent 3b17e59 commit b12c103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7557,7 +7557,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
75577557
return N1;
75587558
break;
75597559
case ISD::VECTOR_COMPRESS: {
7560-
EVT VecVT = N1.getValueType();
7560+
[[maybe_unused]] EVT VecVT = N1.getValueType();
75617561
[[maybe_unused]] EVT MaskVT = N2.getValueType();
75627562
[[maybe_unused]] EVT PassthruVT = N3.getValueType();
75637563
assert(VT == VecVT && "Vector and result type don't match.");

0 commit comments

Comments
 (0)