[llvm] e26ed6b - Fix unused variable warning

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 01:56:16 PDT 2020


Author: Guillaume Chatelet
Date: 2020-06-09T08:56:05Z
New Revision: e26ed6bdaec4460bbcb8761e7c1105cdc7a55c83

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

LOG: Fix unused variable warning

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 80f03c422284..7dbf805c7a13 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2010,8 +2010,8 @@ Align SelectionDAG::getReducedAlign(EVT VT, bool UseABI) {
     EVT IntermediateVT;
     MVT RegisterVT;
     unsigned NumIntermediates;
-    unsigned NumRegs = TLI->getVectorTypeBreakdown(
-        *getContext(), VT, IntermediateVT, NumIntermediates, RegisterVT);
+    TLI->getVectorTypeBreakdown(*getContext(), VT, IntermediateVT,
+                                NumIntermediates, RegisterVT);
     Ty = IntermediateVT.getTypeForEVT(*getContext());
     Align RedAlign2 = UseABI ? DL.getABITypeAlign(Ty) : DL.getPrefTypeAlign(Ty);
     if (RedAlign2 < RedAlign)


        


More information about the llvm-commits mailing list