Skip to content

Commit 3f3f88f

Browse files
author
Siva Chandra Reddy
committed
[libc][Obvious] Add a file which was missed in 001a12e.
1 parent 001a12e commit 3f3f88f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)