Commit 06cfcdcc authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

[AArch64][SVE] Fold variable into assert to silence unused variable warnings in Release builds

parent 019c8d9d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.