[Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD
authorViktor Kutuzov <vkutuzov@accesssoftek.com>
Wed, 6 May 2015 09:31:33 +0000 (09:31 +0000)
committerViktor Kutuzov <vkutuzov@accesssoftek.com>
Wed, 6 May 2015 09:31:33 +0000 (09:31 +0000)
Differential Revision: http://reviews.llvm.org/D9462

llvm-svn: 236582

compiler-rt/test/msan/mmap_below_shadow.cc

index 2b507d0..5f25a9b 100644 (file)
 
 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)