diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 724e3eac3b69e..379f07e14948c 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -11040,8 +11040,7 @@ SDValue AArch64TargetLowering::LowerSETCCCARRY(SDValue Op, static SDValue emitVectorComparison(SDValue LHS, SDValue RHS, AArch64CC::CondCode CC, bool NoNans, EVT VT, const SDLoc &DL, SelectionDAG &DAG) { - EVT SrcVT = LHS.getValueType(); - assert(VT.getSizeInBits() == SrcVT.getSizeInBits() && + assert(VT.getSizeInBits() == LHS.getValueType().getSizeInBits() && "function only supposed to emit natural comparisons"); switch (CC) {