From: Sam Parker Date: Mon, 24 Aug 2020 10:23:46 +0000 (+0100) Subject: [SCEV] Still (again) trying to fix buildbots X-Git-Tag: llvmorg-13-init~13945 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce176bed2c4f88804e7d4bb9671637d88206e78;p=platform%2Fupstream%2Fllvm.git [SCEV] Still (again) trying to fix buildbots --- 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());