summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/catch_reference_nullptr.pass.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix catch_reference_nullptr.pass.cpp test for GCC.Eric Fiselier2017-01-201-7/+1
| | | | | | | | | | | | This test contained an implicit conversion from nullptr to bool. Clang warns about this but the test had supressed that warning. However GCC diagnoses the same code as an error and requires -fpermissive to accept it. This patch fixes both the warning and the error by explicitly converting the pointer to bool. llvm-svn: 292638
* Attempt to bring peace to -Werror buildbots.Richard Smith2016-07-191-0/+6
| | | | llvm-svn: 276022
* [libcxxabi] When catching an exception of type nullptr_t with a handler ofRichard Smith2016-07-191-0/+49
pointer-to-member type, produce a null value of the right type. This fixes a bug where throwing an exception of type nullptr_t and catching it as a pointer-to-member would not guarantee to produce a null value in the catch handler. The fix is pretty simple: we statically allocate a constant null pointer-to-data-member representation and a constant null pointer-to-member-function representation, and produce the address of the relevant value as the adjusted pointer for the exception. llvm-svn: 276016
OpenPOWER on IntegriCloud