Author: Chuanqi Xu
Date: 2021-12-01T16:16:36+08:00
New Revision: 3666cd0216b85ef962e92a5e19dea2215559b48a

URL: 
https://github.com/llvm/llvm-project/commit/3666cd0216b85ef962e92a5e19dea2215559b48a
DIFF: 
https://github.com/llvm/llvm-project/commit/3666cd0216b85ef962e92a5e19dea2215559b48a.diff

LOG: [Coroutines] Make suspend_always in test noexcept (NFC)

Added: 
    

Modified: 
    clang/test/CodeGenCoroutines/Inputs/coroutine.h

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCoroutines/Inputs/coroutine.h 
b/clang/test/CodeGenCoroutines/Inputs/coroutine.h
index 581c7166e8427..7c2d363f8890d 100644
--- a/clang/test/CodeGenCoroutines/Inputs/coroutine.h
+++ b/clang/test/CodeGenCoroutines/Inputs/coroutine.h
@@ -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; }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to