[compiler-rt] r216177 - [ASan] Turns out we should always intercept __cxa_throw

Timur Iskhodzhanov timurrrr at google.com
Thu Aug 21 06:33:39 PDT 2014


Author: timurrrr
Date: Thu Aug 21 08:33:39 2014
New Revision: 216177

URL: http://llvm.org/viewvc/llvm-project?rev=216177&view=rev
Log:
[ASan] Turns out we should always intercept __cxa_throw
At least check-asan works with this change.

If the change breaks anything, we'll need to add:
a) a comment describing why we have to use INTERCEPT_FUNCTION rather than
   ASAN_INTERCEPT_FUNC
and
b) a test case.



Modified:
    compiler-rt/trunk/lib/asan/asan_interceptors.cc

Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=216177&r1=216176&r2=216177&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Thu Aug 21 08:33:39 2014
@@ -829,7 +829,7 @@ void InitializeAsanInterceptors() {
 
   // Intercept exception handling functions.
 #if ASAN_INTERCEPT___CXA_THROW
-  INTERCEPT_FUNCTION(__cxa_throw);
+  ASAN_INTERCEPT_FUNC(__cxa_throw);
 #endif
 
   // Intercept threading-related functions





More information about the llvm-commits mailing list