[AArch64][SVE] Fold variable into assert to silence unused variable warnings in Relea...
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 15 Jan 2020 11:50:27 +0000 (12:50 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 15 Jan 2020 11:50:27 +0000 (12:50 +0100)
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

index 1961555..d45a800 100644 (file)
@@ -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.