[lsan] Set current_thread_tid correctly for main thread.

llvm-svn: 184189
This commit is contained in:
Sergey Matveev 2013-06-18 14:44:45 +00:00
parent e8c40ef783
commit 2717e7be06
1 changed files with 1 additions and 0 deletions

View File

@ -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;