forked from OSchip/llvm-project
[Coroutines] Make suspend_always in test noexcept (NFC)
This commit is contained in:
parent
f6ae8e8cc7
commit
3666cd0216
|
@ -67,9 +67,9 @@ template <typename Promise> struct coroutine_handle : coroutine_handle<> {
|
|||
}
|
||||
|
||||
struct suspend_always {
|
||||
bool await_ready() { return false; }
|
||||
void await_suspend(coroutine_handle<>) {}
|
||||
void await_resume() {}
|
||||
bool await_ready() noexcept { return false; }
|
||||
void await_suspend(coroutine_handle<>) noexcept {}
|
||||
void await_resume() noexcept {}
|
||||
};
|
||||
struct suspend_never {
|
||||
bool await_ready() noexcept { return true; }
|
||||
|
|
Loading…
Reference in New Issue