[llvm] [Coroutines] fix coroutines + std::unique_ptr with async exceptions validation errors (PR #149691)

Weibo He via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 17 06:43:53 PDT 2025


================
@@ -0,0 +1,45 @@
+; In coro-split, this coroutine code reduced IR, produced using clang with async-exceptions
+; crashed before fix because of the validation mismatch of Instruction does not dominate all uses!
+; RUN: opt < %s -passes='coro-split' -S 2>&1 | FileCheck %s --implicit-check-not="Instruction does not dominate all uses!"
+; RUN: opt < %s -passes='default<Os>,coro-split' -S 2>&1 | FileCheck %s --implicit-check-not="Instruction does not dominate all uses!"
----------------
NewSigma wrote:

Could you explain why do we need `coro-split` after `default<Os>`?

https://github.com/llvm/llvm-project/pull/149691


More information about the llvm-commits mailing list