]> granicus.if.org Git - clang/commit
MS ABI: Allow a nullptr_t exception to be caught by void * catch handler
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 12 Mar 2015 17:44:49 +0000 (17:44 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 12 Mar 2015 17:44:49 +0000 (17:44 +0000)
commit7f86d7a41f67bdcb1db6da433d0e1570fd6b25ab
tree8d45314cfe0e0e001bade225219aa771133f56df
parentace6fbd75c84e1d427b3a2e48d09752b52ad7021
MS ABI: Allow a nullptr_t exception to be caught by void * catch handler

A nullptr exception object can be caught by any pointer type catch
handler.  However, it is not possible to express this in the exception
info for the MS ABI.  As a middle ground, allow such exception objects
to be caught with pointer-to-void catch handlers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232069 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-throw.cpp