Skip to content

Commit 454c84c

Browse files
committed
Add missing lsan_common.h include in asan_emscripten.cpp
Otherwise LSan considers allocations within pthread_create as leaky.
1 parent 2d96b78 commit 454c84c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/lib/compiler-rt/lib/asan/asan_emscripten.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#include "asan_poisoning.h"
55
#include "asan_stack.h"
66
#include "asan_thread.h"
7+
#include "lsan/lsan_common.h" // for CAN_SANITIZE_LEAKS
78

89
#if SANITIZER_EMSCRIPTEN
910
#include <emscripten.h>
1011
#include <cstddef>
11-
#include <cstdint>
12-
#define __ATTRP_C11_THREAD ((void*)(uintptr_t)-1)
12+
#define __ATTRP_C11_THREAD ((void*)(uptr)-1)
1313

1414
namespace __asan {
1515

0 commit comments

Comments
 (0)