forked from OSchip/llvm-project
[lsan] Set current_thread_tid correctly for main thread.
llvm-svn: 184189
This commit is contained in:
parent
e8c40ef783
commit
2717e7be06
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue