[llvm] e286c60 - [SCEV] Attempt to fix windows buildbots

Sam Parker via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 00:29:50 PDT 2020


Author: Sam Parker
Date: 2020-08-24T08:29:22+01:00
New Revision: e286c600e10d06f922e3129bafac640f326cf9ee

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

LOG: [SCEV] Attempt to fix windows buildbots

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
index 10fefa0272b1..41df158f5de7 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
@@ -74,7 +74,7 @@ class Type;
   /// This is the base class for unary cast operator classes.
   class SCEVCastExpr : public SCEV {
   protected:
-    const SCEV *Op;
+    const SCEV *const Op;
     Type *Ty;
 
     SCEVCastExpr(const FoldingSetNodeIDRef ID,
@@ -88,8 +88,11 @@ class Type;
     }
     using op_iterator = const SCEV *const *;
     using op_range = iterator_range<op_iterator>;
+
+    op_iterator op_begin() const { return &Op; }
+    op_iterator op_end() const { return &Op + 1; }
     op_range operands() const {
-      return make_range(&Op, &Op + 1);
+      return make_range(op_begin(), op_end());
     }
     size_t getNumOperands() const { return 1; }
     Type *getType() const { return Ty; }


        


More information about the llvm-commits mailing list