Skip to content

Commit 1c2d7b3

Browse files
[AArch64] Fix a warning
This patch fixes: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:19079:7: error: unused variable 'VT' [-Werror,-Wunused-variable]
1 parent 170c0c5 commit 1c2d7b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19076,9 +19076,8 @@ static SDValue performUADDVCombine(SDNode *N, SelectionDAG &DAG) {
1907619076
}
1907719077

1907819078
// uaddv(A) --> A if all lanes of A are known to be zeros except the 0th lane.
19079-
MVT VT = N->getSimpleValueType(0);
1908019079
MVT OpVT = A.getSimpleValueType();
19081-
assert(VT == OpVT &&
19080+
assert(N->getSimpleValueType(0) == OpVT &&
1908219081
"The operand type should be consistent with the result type of UADDV");
1908319082
APInt Mask = APInt::getAllOnes(OpVT.getVectorNumElements());
1908419083
Mask.clearBit(0);

0 commit comments

Comments
 (0)