From 4ce176bed2c4f88804e7d4bb9671637d88206e78 Mon Sep 17 00:00:00 2001 From: Sam Parker Date: Mon, 24 Aug 2020 11:23:46 +0100 Subject: [PATCH] [SCEV] Still (again) trying to fix buildbots --- llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h index 0327dc1..0245569 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -86,7 +86,7 @@ class Type; assert(i == 0 && "Operand index out of range!"); return Operands[0]; } - using op_iterator = const SCEV *const *; + using op_iterator = std::array::const_iterator; using op_range = iterator_range; op_range operands() const { @@ -274,7 +274,7 @@ class Type; class SCEVUDivExpr : public SCEV { friend class ScalarEvolution; - std::array Operands; + std::array Operands; SCEVUDivExpr(const FoldingSetNodeIDRef ID, const SCEV *lhs, const SCEV *rhs) : SCEV(ID, scUDivExpr, computeExpressionSize({lhs, rhs})) { @@ -291,7 +291,7 @@ class Type; return i == 0 ? getLHS() : getRHS(); } - using op_iterator = const SCEV *const *; + using op_iterator = std::array::const_iterator; using op_range = iterator_range; op_range operands() const { return make_range(Operands.begin(), Operands.end()); -- 2.7.4