Skip to content

Commit 030499f

Browse files
authored
Merge branch 'main' into build-parallel-scheduler
2 parents db9705d + 02d671d commit 030499f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

include/stdexec/__detail/__basic_sender.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,19 @@ namespace STDEXEC
236236
using receiver_concept = receiver_tag;
237237
using __index_t = __msize_t<_Idx>;
238238

239+
#if STDEXEC_APPLE_CLANG()
240+
// These constructors are a work-around for bad codegen with apple-clang
241+
STDEXEC_ATTRIBUTE(always_inline)
242+
constexpr explicit __rcvr(_State& __state) noexcept
243+
: __state_(__state)
244+
{}
245+
246+
STDEXEC_ATTRIBUTE(always_inline)
247+
constexpr __rcvr(__rcvr const & __other) noexcept
248+
: __state_(__other.__state_)
249+
{}
250+
#endif // STDEXEC_APPLE_CLANG()
251+
239252
template <class... _Args>
240253
STDEXEC_ATTRIBUTE(always_inline)
241254
constexpr void set_value(_Args&&... __args) noexcept

0 commit comments

Comments
 (0)