[llvm] 7329dc0 - [RISCV][NFC] Fix unused variable warning.

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 06:39:40 PDT 2022


Author: Yeting Kuo
Date: 2022-10-09T21:39:30+08:00
New Revision: 7329dc0cc3ea2d2b24586d7bd44efd1b93312658

URL: https://github.com/llvm/llvm-project/commit/7329dc0cc3ea2d2b24586d7bd44efd1b93312658
DIFF: https://github.com/llvm/llvm-project/commit/7329dc0cc3ea2d2b24586d7bd44efd1b93312658.diff

LOG: [RISCV][NFC] Fix unused variable warning.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D135365

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 766a32ab30628..5eb6448714d8d 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -4512,7 +4512,7 @@ SDValue RISCVTargetLowering::lowerSPLAT_VECTOR_PARTS(SDValue Op,
   if (VecVT.isFixedLengthVector()) {
     MVT ContainerVT = getContainerForFixedLengthVector(VecVT);
     SDLoc DL(Op);
-    auto [Mask, VL] = getDefaultVLOps(VecVT, ContainerVT, DL, DAG, Subtarget);
+    auto VL = getDefaultVLOps(VecVT, ContainerVT, DL, DAG, Subtarget).second;
 
     SDValue Res =
         splatPartsI64WithVL(DL, ContainerVT, SDValue(), Lo, Hi, VL, DAG);


        


More information about the llvm-commits mailing list