Add workaround for MSVC bad codegen bug. · jwait/cppcoro@d965af8 · GitHub
Skip to content

Commit d965af8

Browse files
committed
Add workaround for MSVC bad codegen bug.
Mark task<T>'s final_awaitable::await_suspend() method as noinline. This fixes a crash in the multi-threaded async_auto_reset_event tests under x86 optimised builds under MSVC 2017.8.
1 parent 02d78fb commit d965af8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/cppcoro/task.hpp

Lines changed: 6 additions & 0 deletions

0 commit comments

Comments
 (0)