diff --git a/folly/coro/ViaIfAsync.h b/folly/coro/ViaIfAsync.h index e4f96d56759..11e98d7e8ee 100644 --- a/folly/coro/ViaIfAsync.h +++ b/folly/coro/ViaIfAsync.h @@ -645,7 +645,8 @@ class CommutativeWrapperAwaitable { }; template -class TryAwaitable : public CommutativeWrapperAwaitable { +class [[FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLE]] TryAwaitable + : public CommutativeWrapperAwaitable { public: using CommutativeWrapperAwaitable:: CommutativeWrapperAwaitable; @@ -680,7 +681,7 @@ using semi_await_try_result_t = namespace detail { template -class NothrowAwaitable +class [[FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLE]] NothrowAwaitable : public CommutativeWrapperAwaitable { public: using CommutativeWrapperAwaitable::