diff options
author | Sergey Matveev <earthdok@google.com> | 2013-06-18 14:44:45 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-06-18 14:44:45 +0000 |
commit | 2717e7be0626fdbfd0eeb3099f8d76fa92f4a43c (patch) | |
tree | 9f1cf352ebe6ec3a30eb123c29c98565f05ea4c3 /compiler-rt/lib/lsan | |
parent | e8c40ef783d93915d6ea6c0914a525da32ac3ef5 (diff) | |
download | bcm5719-llvm-2717e7be0626fdbfd0eeb3099f8d76fa92f4a43c.tar.gz bcm5719-llvm-2717e7be0626fdbfd0eeb3099f8d76fa92f4a43c.zip |
[lsan] Set current_thread_tid correctly for main thread.
llvm-svn: 184189
Diffstat (limited to 'compiler-rt/lib/lsan')
-rw-r--r-- | compiler-rt/lib/lsan/lsan.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan.cc b/compiler-rt/lib/lsan/lsan.cc index 9b83b411f84..c917bcc750f 100644 --- a/compiler-rt/lib/lsan/lsan.cc +++ b/compiler-rt/lib/lsan/lsan.cc @@ -48,6 +48,7 @@ void Init() { u32 tid = ThreadCreate(0, 0, true); CHECK_EQ(tid, 0); ThreadStart(tid, GetTid()); + SetCurrentThread(tid); // Start symbolizer process if necessary. const char* external_symbolizer = common_flags()->external_symbolizer_path; |