File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ //===-- Convenient sanitizer annotations ----------------------------------===//
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
+ #ifndef LLVM_LIBC_SRC_SUPPORT_SANITIZER_ANNOTATIONS_H
10
+ #define LLVM_LIBC_SRC_SUPPORT_SANITIZER_ANNOTATIONS_H
11
+
12
+ #if __has_feature (memory_sanitizer )
13
+ #include <sanitizer/msan_interface.h>
14
+ #define SANITIZER_MEMORY_INITIALIZED (addr , size ) __msan_unpoison(addr, size)
15
+ #else
16
+ #define SANITIZER_MEMORY_INITIALIZED (ptr , size )
17
+ #endif
18
+
19
+ #endif // LLVM_LIBC_SRC_SUPPORT_SANITIZER_ANNOTATIONS_H
You can’t perform that action at this time.
0 commit comments