[PATCH] D30859: [coroutines] Implement unhandled_exception changes.
    Eric Fiselier via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Mar 11 03:17:15 PST 2017
    
    
  
EricWF created this revision.
Herald added a subscriber: mehdi_amini.
This patch adopts the recent changes that renamed `set_exception(exception_pointer)` to `unhandled_exception()`.
Additionally `unhandled_exception()` is now required, and so an error is emitted when exceptions are enabled but the promise type does not provide the member.
When exceptions are disabled a warning is emitted instead of an error, The warning notes that the `unhandled_exception()` function is required when exceptions are enabled.
https://reviews.llvm.org/D30859
Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaCoroutine.cpp
  test/SemaCXX/Inputs/std-coroutine.h
  test/SemaCXX/coreturn.cpp
  test/SemaCXX/coroutine-unhandled_exception-warning.cpp
  test/SemaCXX/coroutines.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30859.91458.patch
Type: text/x-patch
Size: 15303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170311/211e7d47/attachment-0001.bin>
    
    
More information about the cfe-commits
mailing list