Fix unused variable warning
authorGuillaume Chatelet <gchatelet@google.com>
Tue, 9 Jun 2020 08:56:05 +0000 (08:56 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 9 Jun 2020 08:56:05 +0000 (08:56 +0000)
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 80f03c4..7dbf805 100644 (file)
@@ -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)