forked from OSchip/llvm-project
[ASan/Win] Add a comment about DCL-using-static vs threads
llvm-svn: 209414
This commit is contained in:
parent
49802ef93b
commit
818b2e8f71
|
@ -170,6 +170,7 @@ extern "C" {
|
|||
void __asan_init_v3() {
|
||||
typedef void (*fntype)();
|
||||
static fntype fn = 0;
|
||||
// __asan_init_v3 is expected to be called by only one thread.
|
||||
if (fn) return;
|
||||
|
||||
fn = (fntype)getRealProcAddressOrDie("__asan_init_v3");
|
||||
|
|
Loading…
Reference in New Issue