[PATCH] D41820: [coroutines] Pass coro func args to promise ctor
Brian Gesiak via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 8 06:15:11 PST 2018
modocache created this revision.
modocache added reviewers: rsmith, GorNishanov, eric_niebler.
Herald added a subscriber: EricWF.
Use corutine function arguments to initialize a promise type, but only
if the promise type defines a constructor that takes those arguments.
Otherwise, fall back to the default constructor.
Test Plan: check-clang
Repository:
rC Clang
https://reviews.llvm.org/D41820
Files:
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Sema/CoroutineStmtBuilder.h
lib/Sema/ScopeInfo.cpp
lib/Sema/SemaCoroutine.cpp
lib/Sema/TreeTransform.h
test/CodeGenCoroutines/coro-alloc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41820.128916.patch
Type: text/x-patch
Size: 13951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180108/88a06dd1/attachment.bin>
More information about the cfe-commits
mailing list