From e286c600e10d06f922e3129bafac640f326cf9ee Mon Sep 17 00:00:00 2001 From: Sam Parker Date: Mon, 24 Aug 2020 08:29:04 +0100 Subject: [PATCH] [SCEV] Attempt to fix windows buildbots --- llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h index 10fefa0..41df158 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_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; } -- 2.7.4