]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/sanitizer_common/sanitizer_allocator_checks.cc
Merge compiler-rt trunk r321017 to contrib/compiler-rt.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / sanitizer_common / sanitizer_allocator_checks.cc
1 //===-- sanitizer_allocator_checks.cc ---------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Various checks shared between ThreadSanitizer, MemorySanitizer, etc. memory
11 // allocators.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "sanitizer_errno.h"
16
17 namespace __sanitizer {
18
19 void SetErrnoToENOMEM() {
20   errno = errno_ENOMEM;
21 }
22
23 } // namespace __sanitizer