[compiler-rt] r236582 - [Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed May 6 02:31:33 PDT 2015


Author: vkutuzov
Date: Wed May  6 04:31:33 2015
New Revision: 236582

URL: http://llvm.org/viewvc/llvm-project?rev=236582&view=rev
Log:
[Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D9462

Modified:
    compiler-rt/trunk/test/msan/mmap_below_shadow.cc

Modified: compiler-rt/trunk/test/msan/mmap_below_shadow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/mmap_below_shadow.cc?rev=236582&r1=236581&r2=236582&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/mmap_below_shadow.cc (original)
+++ compiler-rt/trunk/test/msan/mmap_below_shadow.cc Wed May  6 04:31:33 2015
@@ -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)





More information about the llvm-commits mailing list