summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-07-10 17:38:30 +0000
committerLouis Dionne <ldionne@apple.com>2018-07-10 17:38:30 +0000
commitcf3ae38405801fe2bc55df5244a5e0ddf73d943a (patch)
tree371dcef8554061e86c0c1720432e242359f00611 /libcxx/include/experimental
parent8fa2608493e200c54fe5887c84ba4415ab6b5eff (diff)
downloadbcm5719-llvm-cf3ae38405801fe2bc55df5244a5e0ddf73d943a.tar.gz
bcm5719-llvm-cf3ae38405801fe2bc55df5244a5e0ddf73d943a.zip
[libc++] Declare noop_coroutine() with _LIBCPP_INLINE_VISIBILITY
Summary: It was defined with the right visibility, but declared without any visibility. This function was left out of a prior revision that did the same to several functions in <compare> (r336665) because the compiler I used didn't support coroutines. This reinforces the need for automated checks -- there might still be several cases of this throughout the library. Reviewers: EricWF Subscribers: modocache, christof, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D49145 llvm-svn: 336709
Diffstat (limited to 'libcxx/include/experimental')
-rw-r--r--libcxx/include/experimental/coroutine1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/experimental/coroutine b/libcxx/include/experimental/coroutine
index 32d55fa57f8..1eb224a535a 100644
--- a/libcxx/include/experimental/coroutine
+++ b/libcxx/include/experimental/coroutine
@@ -283,6 +283,7 @@ public:
_LIBCPP_CONSTEXPR_AFTER_CXX17 void destroy() const _NOEXCEPT {}
private:
+ _LIBCPP_INLINE_VISIBILITY
friend coroutine_handle<noop_coroutine_promise> noop_coroutine() _NOEXCEPT;
_LIBCPP_INLINE_VISIBILITY coroutine_handle() _NOEXCEPT {
OpenPOWER on IntegriCloud