forked from OSchip/llvm-project
[SCEV] Attempt to fix windows buildbots
This commit is contained in:
parent
610706906a
commit
e286c600e1
|
@ -74,7 +74,7 @@ class Type;
|
||||||
/// This is the base class for unary cast operator classes.
|
/// This is the base class for unary cast operator classes.
|
||||||
class SCEVCastExpr : public SCEV {
|
class SCEVCastExpr : public SCEV {
|
||||||
protected:
|
protected:
|
||||||
const SCEV *Op;
|
const SCEV *const Op;
|
||||||
Type *Ty;
|
Type *Ty;
|
||||||
|
|
||||||
SCEVCastExpr(const FoldingSetNodeIDRef ID,
|
SCEVCastExpr(const FoldingSetNodeIDRef ID,
|
||||||
|
@ -88,8 +88,11 @@ class Type;
|
||||||
}
|
}
|
||||||
using op_iterator = const SCEV *const *;
|
using op_iterator = const SCEV *const *;
|
||||||
using op_range = iterator_range<op_iterator>;
|
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 {
|
op_range operands() const {
|
||||||
return make_range(&Op, &Op + 1);
|
return make_range(op_begin(), op_end());
|
||||||
}
|
}
|
||||||
size_t getNumOperands() const { return 1; }
|
size_t getNumOperands() const { return 1; }
|
||||||
Type *getType() const { return Ty; }
|
Type *getType() const { return Ty; }
|
||||||
|
|
Loading…
Reference in New Issue