Skip to content

Commit 06cfcdc

Browse files
committed
[AArch64][SVE] Fold variable into assert to silence unused variable warnings in Release builds
1 parent 019c8d9 commit 06cfcdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10895,8 +10895,8 @@ static SDValue getPTest(SelectionDAG &DAG, EVT VT, SDValue Pg, SDValue Op,
1089510895
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
1089610896

1089710897
SDLoc DL(Op);
10898-
EVT OpVT = Op.getValueType();
10899-
assert(OpVT.isScalableVector() && TLI.isTypeLegal(OpVT) &&
10898+
assert(Op.getValueType().isScalableVector() &&
10899+
TLI.isTypeLegal(Op.getValueType()) &&
1090010900
"Expected legal scalable vector type!");
1090110901

1090210902
// Ensure target specific opcodes are using legal type.

0 commit comments

Comments
 (0)