[llvm] ebb02fb - RISCVISelLowering.cpp: Suppress a warning. (D150824)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 17:03:35 PDT 2023


Author: NAKAMURA Takumi
Date: 2023-06-06T08:55:46+09:00
New Revision: ebb02fb275bfa036379766f9bc4072b1b9c522dd

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

LOG: RISCVISelLowering.cpp: Suppress a warning. (D150824)

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 acdbaccdaed87..abefb8d152d3c 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -6675,6 +6675,7 @@ static SDValue lowerGetVectorLength(SDNode *N, SelectionDAG &DAG,
   unsigned VF = N->getConstantOperandVal(2);
   assert(VF >= MinVF && VF <= (LMul1VF * 8) && isPowerOf2_32(VF) &&
          "Unexpected VF");
+  (void)MinVF;
 
   bool Fractional = VF < LMul1VF;
   unsigned LMulVal = Fractional ? LMul1VF / VF : VF / LMul1VF;


        


More information about the llvm-commits mailing list