summaryrefslogtreecommitdiff
path: root/include/llvm/IR/User.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/IR/User.h')
-rw-r--r--include/llvm/IR/User.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/IR/User.h b/include/llvm/IR/User.h
index 7d3fb494ad..4f8d1b35df 100644
--- a/include/llvm/IR/User.h
+++ b/include/llvm/IR/User.h
@@ -121,10 +121,10 @@ public:
inline op_iterator op_end() { return OperandList+NumOperands; }
inline const_op_iterator op_end() const { return OperandList+NumOperands; }
inline op_range operands() {
- return {op_begin(), op_end()};
+ return op_range(op_begin(), op_end());
}
inline const_op_range operands() const {
- return {op_begin(), op_end()};
+ return const_op_range(op_begin(), op_end());
}
/// Convenience iterator for directly iterating over the Values in the
@@ -166,7 +166,7 @@ public:
return value_op_iterator(op_end());
}
inline iterator_range<value_op_iterator> operand_values() {
- return {value_op_begin(), value_op_end()};
+ return iterator_range<value_op_iterator>(value_op_begin(), value_op_end());
}
// dropAllReferences() - This function is in charge of "letting go" of all