rmaprath created this revision. rmaprath added reviewers: rengolin, mclow.lists. rmaprath added a subscriber: cfe-commits.
Fixes a small omission in libcxx that prevents libcxx being built when -DLIBCXX_ENABLE_EXCEPTIONS=0 is used. I will do a follow-up patch to introduce the new libc++ build to the buildbot. http://reviews.llvm.org/D14292 Files: src/future.cpp Index: src/future.cpp =================================================================== --- src/future.cpp +++ src/future.cpp @@ -221,10 +221,12 @@ { if (__state_) { +#ifndef _LIBCPP_NO_EXCEPTIONS if (!__state_->__has_value() && __state_->use_count() > 1) __state_->set_exception(make_exception_ptr( future_error(make_error_code(future_errc::broken_promise)) )); +#endif // _LIBCPP_NO_EXCEPTIONS __state_->__release_shared(); } }
Index: src/future.cpp =================================================================== --- src/future.cpp +++ src/future.cpp @@ -221,10 +221,12 @@ { if (__state_) { +#ifndef _LIBCPP_NO_EXCEPTIONS if (!__state_->__has_value() && __state_->use_count() > 1) __state_->set_exception(make_exception_ptr( future_error(make_error_code(future_errc::broken_promise)) )); +#endif // _LIBCPP_NO_EXCEPTIONS __state_->__release_shared(); } }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits