summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-04-09 22:11:28 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-04-09 22:11:28 +0000
commitb89e9b5e2f3f844564bd6d3a4ca9972c206e9a4d (patch)
treea29b145e051a768bce7379b19fd2eae353f499a0 /libcxxabi/src
parent9a9c8233886d78c708d32272da9baee48882611e (diff)
downloadbcm5719-llvm-b89e9b5e2f3f844564bd6d3a4ca9972c206e9a4d.tar.gz
bcm5719-llvm-b89e9b5e2f3f844564bd6d3a4ca9972c206e9a4d.zip
[CFI] Disable CFI checks for __cxa_decrement_exception_refcount
Summary: exception_header->exceptionDestructor is a void(*)(void*) function pointer; however, it can point to destructors like std:: exception::~exception that don't match that type signature. Reviewers: pcc, vitalybuka Reviewed By: vitalybuka Subscribers: kcc, christof, cfe-commits Differential Revision: https://reviews.llvm.org/D45455 llvm-svn: 329629
Diffstat (limited to 'libcxxabi/src')
-rw-r--r--libcxxabi/src/cxa_exception.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp
index b77f3a80796..679c32fda72 100644
--- a/libcxxabi/src/cxa_exception.cpp
+++ b/libcxxabi/src/cxa_exception.cpp
@@ -630,8 +630,8 @@ __cxa_increment_exception_refcount(void *thrown_object) throw() {
Requires: If thrown_object is not NULL, it is a native exception.
*/
-void
-__cxa_decrement_exception_refcount(void *thrown_object) throw() {
+_LIBCXXABI_NO_CFI
+void __cxa_decrement_exception_refcount(void *thrown_object) throw() {
if (thrown_object != NULL )
{
__cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object);
OpenPOWER on IntegriCloud