diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-15 12:50:27 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-15 12:50:27 +0100 |
commit | 06cfcdcca7de9c88a1e885eff0d0c4c07090ad48 (patch) | |
tree | 4ce2f8a306aae89b2121e8dfbddd42084319fc44 | |
parent | 019c8d9d1511a07d2004667d2240f3e47cb991ec (diff) | |
download | bcm5719-llvm-06cfcdcca7de9c88a1e885eff0d0c4c07090ad48.tar.gz bcm5719-llvm-06cfcdcca7de9c88a1e885eff0d0c4c07090ad48.zip |
[AArch64][SVE] Fold variable into assert to silence unused variable warnings in Release builds
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 19615550aad..d45a8005756 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. |