Commit 57f9d2cd authored by Igor Sugak's avatar Igor Sugak Committed by Facebook GitHub Bot

workaround LLVM-12 coro bug

Reviewed By: yfeldblum

Differential Revision: D29979792

fbshipit-source-id: c18155884f1ac737b7b222b9804398b6bb31049e
parent 8adc1e1f
...@@ -151,7 +151,7 @@ class WithAsyncStackAwaiter { ...@@ -151,7 +151,7 @@ class WithAsyncStackAwaiter {
auto await_resume() noexcept( auto await_resume() noexcept(
noexcept(std::declval<Awaiter&>().await_resume())) noexcept(std::declval<Awaiter&>().await_resume()))
-> decltype(std::declval<Awaiter&>().await_resume()) { -> decltype(std::declval<Awaiter&>().await_resume()) {
coroWrapper_ = {}; coroWrapper_ = WithAsyncStackCoroutine();
return awaiter_.await_resume(); return awaiter_.await_resume();
} }
...@@ -159,7 +159,7 @@ class WithAsyncStackAwaiter { ...@@ -159,7 +159,7 @@ class WithAsyncStackAwaiter {
auto await_resume_try() noexcept( auto await_resume_try() noexcept(
noexcept(std::declval<Awaiter2&>().await_resume_try())) noexcept(std::declval<Awaiter2&>().await_resume_try()))
-> decltype(std::declval<Awaiter2&>().await_resume_try()) { -> decltype(std::declval<Awaiter2&>().await_resume_try()) {
coroWrapper_ = {}; coroWrapper_ = WithAsyncStackCoroutine();
return awaiter_.await_resume_try(); return awaiter_.await_resume_try();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment