[PATCH] D87470: [Coroutine][Sema] Tighten the lifetime of symmetric transfer returned handle
Xun Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 11 09:51:08 PDT 2020
lxfind updated this revision to Diff 291255.
lxfind added a comment.
Remove unstable test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87470/new/
https://reviews.llvm.org/D87470
Files:
clang/lib/Sema/SemaCoroutine.cpp
Index: clang/lib/Sema/SemaCoroutine.cpp
===================================================================
--- clang/lib/Sema/SemaCoroutine.cpp
+++ clang/lib/Sema/SemaCoroutine.cpp
@@ -398,8 +398,8 @@
diag::warn_coroutine_handle_address_invalid_return_type)
<< JustAddress->getType();
- return buildBuiltinCall(S, Loc, Builtin::BI__builtin_coro_resume,
- JustAddress);
+ return S.MaybeCreateExprWithCleanups(
+ buildBuiltinCall(S, Loc, Builtin::BI__builtin_coro_resume, JustAddress));
}
/// Build calls to await_ready, await_suspend, and await_resume for a co_await
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87470.291255.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200911/a1fb10c2/attachment.bin>
More information about the cfe-commits
mailing list