[llvm] 06a7e04 - [RISCV][NFC] Fix unused variable warning.

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 04:23:16 PST 2022


Author: Yeting Kuo
Date: 2022-11-10T20:23:09+08:00
New Revision: 06a7e04be43ba20a8134710215047513d55adc87

URL: https://github.com/llvm/llvm-project/commit/06a7e04be43ba20a8134710215047513d55adc87
DIFF: https://github.com/llvm/llvm-project/commit/06a7e04be43ba20a8134710215047513d55adc87.diff

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

Reviewed By: frasercrmck

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

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 b08461587fd77..6efc4f098859e 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -4703,7 +4703,7 @@ SDValue RISCVTargetLowering::lowerVectorMaskExt(SDValue Op, SelectionDAG &DAG,
 
   SDValue CC = convertToScalableVector(I1ContainerVT, Src, DAG, Subtarget);
 
-  auto [Mask, VL] = getDefaultVLOps(VecVT, ContainerVT, DL, DAG, Subtarget);
+  SDValue VL = getDefaultVLOps(VecVT, ContainerVT, DL, DAG, Subtarget).second;
 
   MVT XLenVT = Subtarget.getXLenVT();
   SDValue SplatZero = DAG.getConstant(0, DL, XLenVT);


        


More information about the llvm-commits mailing list