File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -644,12 +644,12 @@ static void mi_win_tls_init(DWORD reason) {
644
644
#endif
645
645
if (reason == DLL_PROCESS_ATTACH || reason == DLL_THREAD_ATTACH ) {
646
646
if (mi_prim_get_default_heap () == NULL ) {
647
- _mi_heap_set_default_direct ((mi_heap_t * )& _mi_heap_empty );
647
+ _mi_heap_set_default_direct ((mi_heap_t * )& _mi_heap_empty );
648
+ #if MI_DEBUG && MI_WIN_USE_FIXED_TLS == 1
649
+ void * const p = TlsGetValue ((DWORD )(_mi_win_tls_offset / sizeof (void * )));
650
+ mi_assert_internal (p == (void * )& _mi_heap_empty );
651
+ #endif
648
652
}
649
- #if MI_DEBUG && MI_WIN_USE_FIXED_TLS == 1
650
- void * const p = TlsGetValue ((DWORD )(_mi_win_tls_offset / sizeof (void * )));
651
- mi_assert_internal (p == (void * )& _mi_heap_empty );
652
- #endif
653
653
}
654
654
#else
655
655
MI_UNUSED (reason );
You can’t perform that action at this time.
0 commit comments