[llvm] r202688 - [C++11] MSVC 2012 can't handle list-initialization that calls
Chandler Carruth
chandlerc at gmail.com
Mon Mar 3 02:59:41 PST 2014
Author: chandlerc
Date: Mon Mar 3 04:59:41 2014
New Revision: 202688
URL: http://llvm.org/viewvc/llvm-project?rev=202688&view=rev
Log:
[C++11] MSVC 2012 can't handle list-initialization that calls
a constructor either. Just call the constructor directly. I'll look into
making this work with aggregate initialization some other time (when
I have someone with MSVC 2012 handy to test ideas).
Modified:
llvm/trunk/include/llvm/IR/User.h
Modified: llvm/trunk/include/llvm/IR/User.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/User.h?rev=202688&r1=202687&r2=202688&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/User.h (original)
+++ llvm/trunk/include/llvm/IR/User.h Mon Mar 3 04:59:41 2014
@@ -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
More information about the llvm-commits
mailing list