Skip to content

Commit 45c3053

Browse files
authored
[AArch64] Fix unused-variable warning for non-dbg builds. (#143175)
AArch64ISelLowering.cpp currently fails -Wunused-variable because SrcVT is only used in assert(), so it is an unused variable if not using debug builds. This behavior was introduced in 2c0a226.
1 parent 525726a commit 45c3053

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
@@ -11040,8 +11040,7 @@ SDValue AArch64TargetLowering::LowerSETCCCARRY(SDValue Op,
1104011040
static SDValue emitVectorComparison(SDValue LHS, SDValue RHS,
1104111041
AArch64CC::CondCode CC, bool NoNans, EVT VT,
1104211042
const SDLoc &DL, SelectionDAG &DAG) {
11043-
EVT SrcVT = LHS.getValueType();
11044-
assert(VT.getSizeInBits() == SrcVT.getSizeInBits() &&
11043+
assert(VT.getSizeInBits() == LHS.getValueType().getSizeInBits() &&
1104511044
"function only supposed to emit natural comparisons");
1104611045

1104711046
switch (CC) {

0 commit comments

Comments
 (0)