[llvm] [clang] [coroutine] Implement llvm.coro.await.suspend intrinsic (PR #79712)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 19:42:35 PST 2024


================
@@ -1553,6 +1625,9 @@ static bool hasCallsInBlocksBetween(BasicBlock *SaveBB, BasicBlock *ResDesBB) {
 }
 
 static bool hasCallsBetween(Instruction *Save, Instruction *ResumeOrDestroy) {
+  if (Save == ResumeOrDestroy)
+    return false;
----------------
ChuanqiXu9 wrote:

How can this be true?

Oh, I see you use it in `isSimpleHelper`.

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


More information about the cfe-commits mailing list