[llvm] 8a377f1 - [NFC] Inline assertion-only variable

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 15:12:58 PDT 2020


Author: Jordan Rupprecht
Date: 2020-10-19T15:11:37-07:00
New Revision: 8a377f1e3cf4c26f609b1204f9ce1a340f7fb8d4

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

LOG: [NFC] Inline assertion-only variable

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
index 3e22b30a211c..74196fb06130 100644
--- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
@@ -2400,8 +2400,7 @@ bool SCEVExpander::isHighCostExpansionHelper(
   case scSMaxExpr:
   case scUMinExpr:
   case scSMinExpr: {
-    const SCEVNAryExpr *NAry = dyn_cast<SCEVNAryExpr>(S);
-    assert(NAry->getNumOperands() > 1 &&
+    assert(dyn_cast<SCEVNAryExpr>(S)->getNumOperands() > 1 &&
            "Nary expr should have more than 1 operand.");
     // The simple nary expr will require one less op (or pair of ops)
     // than the number of it's terms.


        


More information about the llvm-commits mailing list