[llvm] ef72ff7 - [RISCV] Fix unused variable warning. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 22 22:29:26 PDT 2022
Author: Craig Topper
Date: 2022-10-22T22:29:03-07:00
New Revision: ef72ff7b1526637cfb20b4c519e4d1892ae52531
URL: https://github.com/llvm/llvm-project/commit/ef72ff7b1526637cfb20b4c519e4d1892ae52531
DIFF: https://github.com/llvm/llvm-project/commit/ef72ff7b1526637cfb20b4c519e4d1892ae52531.diff
LOG: [RISCV] Fix unused variable warning. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 5cf4505f1c73..b51ac4e6d185 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -6520,7 +6520,7 @@ SDValue RISCVTargetLowering::lowerFixedLengthVectorSelectToRVV(
convertToScalableVector(ContainerVT, Op.getOperand(2), DAG, Subtarget);
SDLoc DL(Op);
- auto [Mask, VL] = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget);
+ SDValue VL = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget).second;
SDValue Select =
DAG.getNode(RISCVISD::VSELECT_VL, DL, ContainerVT, CC, Op1, Op2, VL);
More information about the llvm-commits
mailing list