[libcxxabi] r312609 - Revert "[libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return"

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 5 20:00:43 PDT 2017


Author: phosek
Date: Tue Sep  5 20:00:42 2017
New Revision: 312609

URL: http://llvm.org/viewvc/llvm-project?rev=312609&view=rev
Log:
Revert "[libcxxabi] When built with ASan, __cxa_throw calls __asan_handle_no_return"

This reverts commit r312606 because it's causing an error on
libcxx-libcxxabi-x86_64-linux-ubuntu-asan bot.

Modified:
    libcxxabi/trunk/src/cxa_exception.cpp

Modified: libcxxabi/trunk/src/cxa_exception.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_exception.cpp?rev=312609&r1=312608&r2=312609&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_exception.cpp (original)
+++ libcxxabi/trunk/src/cxa_exception.cpp Tue Sep  5 20:00:42 2017
@@ -19,10 +19,6 @@
 #include "cxa_handlers.hpp"
 #include "fallback_malloc.h"
 
-#if __has_feature(address_sanitizer)
-#include <sanitizer/asan_interface.h>
-#endif
-
 // +---------------------------+-----------------------------+---------------+
 // | __cxa_exception           | _Unwind_Exception CLNGC++\0 | thrown object |
 // +---------------------------+-----------------------------+---------------+
@@ -221,12 +217,6 @@ __cxa_throw(void *thrown_object, std::ty
     globals->uncaughtExceptions += 1;   // Not atomically, since globals are thread-local
 
     exception_header->unwindHeader.exception_cleanup = exception_cleanup_func;
-
-#if __has_feature(address_sanitizer)
-    // Inform the ASan runtime that now might be a good time to clean stuff up.
-    __asan_handle_no_return();
-#endif
-
 #ifdef __USING_SJLJ_EXCEPTIONS__
     _Unwind_SjLj_RaiseException(&exception_header->unwindHeader);
 #else




More information about the cfe-commits mailing list