[Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD

Differential Revision: http://reviews.llvm.org/D9462

llvm-svn: 236582
This commit is contained in:
Viktor Kutuzov 2015-05-06 09:31:33 +00:00
parent 385d3f2241
commit 179ceff160
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@
int main(void) { int main(void) {
// Hint address just below shadow. // 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; uintptr_t hint = 0x4f0000000000ULL;
const uintptr_t app_start = 0x600000000000ULL; const uintptr_t app_start = 0x600000000000ULL;
#elif defined (__mips64) #elif defined (__mips64)