Skip to content

Commit b80f2bf

Browse files
authored
Remove unneeded forward declarations. NFC (#18268)
1 parent 6acd733 commit b80f2bf

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

system/lib/compiler-rt/lib/lsan/lsan_common.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#if SANITIZER_EMSCRIPTEN
2929
#include "lsan/lsan_allocator.h"
30+
#include "emscripten/heap.h"
3031
#endif
3132

3233
#if CAN_SANITIZE_LEAKS
@@ -531,10 +532,6 @@ void ScanRootRegion(Frontier *frontier, const RootRegion &root_region,
531532
kReachable);
532533
}
533534

534-
#if SANITIZER_EMSCRIPTEN
535-
extern "C" uptr emscripten_get_heap_size();
536-
#endif
537-
538535
static void ProcessRootRegion(Frontier *frontier,
539536
const RootRegion &root_region) {
540537
#if SANITIZER_EMSCRIPTEN

system/lib/compiler-rt/lib/lsan/lsan_common_emscripten.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333

3434
namespace __lsan {
3535

36-
extern "C" uptr emscripten_get_heap_size();
37-
3836
static const char kLinkerName[] = "ld";
3937

4038
static char linker_placeholder[sizeof(LoadedModule)] ALIGNED(64);

0 commit comments

Comments
 (0)