summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-29 19:46:16 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-29 19:46:16 +0000
commit6e88ac2b6c71aa3a7288afccee06f12ccbf8b956 (patch)
treed4ecae9ac8521d55883b75977831091ab71d53d2 /libcxx
parent3fd0228ead48aa9511a78f171ba08774f32df88e (diff)
downloadbcm5719-llvm-6e88ac2b6c71aa3a7288afccee06f12ccbf8b956.tar.gz
bcm5719-llvm-6e88ac2b6c71aa3a7288afccee06f12ccbf8b956.zip
Fix <experimental/coroutine> in C++03
llvm-svn: 304173
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/experimental/coroutine4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/experimental/coroutine b/libcxx/include/experimental/coroutine
index c5a0e417c2d..21c1ea56640 100644
--- a/libcxx/include/experimental/coroutine
+++ b/libcxx/include/experimental/coroutine
@@ -148,7 +148,7 @@ public:
// FIXME: Should from_address(nullptr) be allowed?
_LIBCPP_ALWAYS_INLINE
static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
- return {};
+ return coroutine_handle(nullptr);
}
template <class _Tp, bool _CallIsValid = false>
@@ -231,7 +231,7 @@ public:
// FIXME: should from_address work with nullptr?
_LIBCPP_ALWAYS_INLINE
static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
- return {};
+ return coroutine_handle(nullptr);
}
template <class _Tp, bool _CallIsValid = false>
OpenPOWER on IntegriCloud