diff options
Diffstat (limited to 'compiler-rt/lib/safestack/safestack.cc')
| -rw-r--r-- | compiler-rt/lib/safestack/safestack.cc | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/compiler-rt/lib/safestack/safestack.cc b/compiler-rt/lib/safestack/safestack.cc index 92c24b35d6d..b194b6cfa8f 100644 --- a/compiler-rt/lib/safestack/safestack.cc +++ b/compiler-rt/lib/safestack/safestack.cc @@ -92,6 +92,8 @@ static __thread void *unsafe_stack_start = nullptr;  static __thread size_t unsafe_stack_size = 0;  static __thread size_t unsafe_stack_guard = 0; +using namespace __sanitizer; +  static inline void *unsafe_stack_alloc(size_t size, size_t guard) {    CHECK_GE(size + guard, size);    void *addr = MmapOrDie(size + guard, "unsafe_stack_alloc"); | 

