================ @@ -249,8 +259,8 @@ bool CoroIdElider::canCoroBeginEscape( Worklist.push_back(CB->getParent()); SmallPtrSet<const BasicBlock *, 32> Visited; - // Consider basicblock of coro.destroy as visited one, so that we - // skip the path pass through coro.destroy. + // Consider basicblock of coro.dead as visited one, so that we ---------------- NewSigma wrote:
Yes, `coro.destroy` implies `coro.dead`. I have revised the comments to make it explicit. https://github.com/llvm/llvm-project/pull/185336 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
