[PATCH] D31399: [coroutines] Handle get_return_object_on_allocation_failure

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 27 09:46:34 PDT 2017


GorNishanov created this revision.
Herald added a subscriber: mehdi_amini.

If promise_type has get_return_object_on_allocation_failure defined,
check if an allocation function returns nullptr, and if so, 
return the result of get_return_object_on_allocation_failure().


https://reviews.llvm.org/D31399

Files:
  include/clang/AST/StmtCXX.h
  lib/AST/StmtCXX.cpp
  lib/CodeGen/CGCoroutine.cpp
  lib/Sema/SemaCoroutine.cpp
  test/CodeGenCoroutines/coro-alloc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31399.93145.patch
Type: text/x-patch
Size: 7686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170327/223f3b29/attachment.bin>


More information about the cfe-commits mailing list