From 06cfcdcca7de9c88a1e885eff0d0c4c07090ad48 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 15 Jan 2020 12:50:27 +0100 Subject: [PATCH] [AArch64][SVE] Fold variable into assert to silence unused variable warnings in Release builds --- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 1961555..d45a800 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -10895,8 +10895,8 @@ static SDValue getPTest(SelectionDAG &DAG, EVT VT, SDValue Pg, SDValue Op, const TargetLowering &TLI = DAG.getTargetLoweringInfo(); SDLoc DL(Op); - EVT OpVT = Op.getValueType(); - assert(OpVT.isScalableVector() && TLI.isTypeLegal(OpVT) && + assert(Op.getValueType().isScalableVector() && + TLI.isTypeLegal(Op.getValueType()) && "Expected legal scalable vector type!"); // Ensure target specific opcodes are using legal type. -- 2.7.4