]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_allocator_checks.cpp
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / compiler-rt / lib / sanitizer_common / sanitizer_allocator_checks.cpp
1 //===-- sanitizer_allocator_checks.cpp --------------------------*- C++ -*-===//
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 // Various checks shared between ThreadSanitizer, MemorySanitizer, etc. memory
10 // allocators.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "sanitizer_errno.h"
15
16 namespace __sanitizer {
17
18 void SetErrnoToENOMEM() {
19   errno = errno_ENOMEM;
20 }
21
22 } // namespace __sanitizer