From 179ceff1602f8a7afaaf412da1135ec987ac0bf6 Mon Sep 17 00:00:00 2001 From: Viktor Kutuzov Date: Wed, 6 May 2015 09:31:33 +0000 Subject: [PATCH] [Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD Differential Revision: http://reviews.llvm.org/D9462 llvm-svn: 236582 --- compiler-rt/test/msan/mmap_below_shadow.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/msan/mmap_below_shadow.cc b/compiler-rt/test/msan/mmap_below_shadow.cc index 2b507d024783..5f25a9b62992 100644 --- a/compiler-rt/test/msan/mmap_below_shadow.cc +++ b/compiler-rt/test/msan/mmap_below_shadow.cc @@ -15,7 +15,10 @@ int main(void) { // Hint address just below shadow. -#if defined(__x86_64__) +#if defined(__FreeBSD__) && defined(__x86_64__) + uintptr_t hint = 0x0f0000000000ULL; + const uintptr_t app_start = 0x000000000000ULL; +#elif defined(__x86_64__) uintptr_t hint = 0x4f0000000000ULL; const uintptr_t app_start = 0x600000000000ULL; #elif defined (__mips64)