summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-03-06 11:45:59 +0000
committerAlexander Potapenko <glider@google.com>2012-03-06 11:45:59 +0000
commitb780ad9117f2805ac70c6a3617190f28a7f8a31d (patch)
treea94f685622203802c79e3414a6f67e785ccdbb46 /compiler-rt
parentcc5fd3e25d16b77b97eab96863759068fe12e9b3 (diff)
downloadbcm5719-llvm-b780ad9117f2805ac70c6a3617190f28a7f8a31d.tar.gz
bcm5719-llvm-b780ad9117f2805ac70c6a3617190f28a7f8a31d.zip
Force __asan_handle_no_return into the binary built with ASan.
llvm-svn: 152117
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/asan/asan_rtl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc
index 339ac7e9dc0..7f83545a1b6 100644
--- a/compiler-rt/lib/asan/asan_rtl.cc
+++ b/compiler-rt/lib/asan/asan_rtl.cc
@@ -259,6 +259,7 @@ static NOINLINE void force_interface_symbols() {
__asan_unregister_globals(NULL, 0);
__asan_set_death_callback(NULL);
__asan_set_error_report_callback(NULL);
+ __asan_handle_no_return();
}
}
@@ -293,7 +294,7 @@ int __asan_set_error_exit_code(int exit_code) {
return old;
}
-void __asan_handle_no_return() {
+void NOINLINE __asan_handle_no_return() {
int local_stack;
AsanThread *curr_thread = asanThreadRegistry().GetCurrent();
CHECK(curr_thread);
OpenPOWER on IntegriCloud