[AArch64] Fix SDNode type mismatches between *.td files and ISel (#116523)
[llvm-project.git] / compiler-rt / lib / lsan / lsan_preinit.cpp
blob30e90f7286499187fee399b4dc1c820d2de3cc0c
1 //===-- lsan_preinit.cpp --------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of LeakSanitizer.
11 // Call __lsan_init at the very early stage of process startup.
12 //===----------------------------------------------------------------------===//
14 #include "lsan.h"
16 #if SANITIZER_CAN_USE_PREINIT_ARRAY
17 // This section is linked into the main executable when -fsanitize=leak is
18 // specified to perform initialization at a very early stage.
19 __attribute__((section(".preinit_array"), used)) static auto preinit =
20 __lsan_init;
21 #endif