diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-03-20 09:23:28 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-03-20 09:23:28 +0000 |
commit | cf025cb2e6c370e0eb4c1602a5b1d8d3b664885a (patch) | |
tree | 33103a4daed9e3d02caeca71e03f428ad87473ab /compiler-rt/lib/asan/asan_rtl.cc | |
parent | b7c68ee85687eeef6cbf8476f6ddef031a00d68b (diff) | |
download | bcm5719-llvm-cf025cb2e6c370e0eb4c1602a5b1d8d3b664885a.tar.gz bcm5719-llvm-cf025cb2e6c370e0eb4c1602a5b1d8d3b664885a.zip |
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry
llvm-svn: 177501
Diffstat (limited to 'compiler-rt/lib/asan/asan_rtl.cc')
-rw-r--r-- | compiler-rt/lib/asan/asan_rtl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc index 1d6a02442a3..bad564cacc6 100644 --- a/compiler-rt/lib/asan/asan_rtl.cc +++ b/compiler-rt/lib/asan/asan_rtl.cc @@ -401,7 +401,7 @@ int NOINLINE __asan_set_error_exit_code(int exit_code) { void NOINLINE __asan_handle_no_return() { int local_stack; - AsanThread *curr_thread = asanThreadRegistry().GetCurrent(); + AsanThread *curr_thread = GetCurrentThread(); CHECK(curr_thread); uptr PageSize = GetPageSizeCached(); uptr top = curr_thread->stack_top(); |