[compiler-rt] r245614 - [asan] Fix build issue from r245596

Adhemerval Zanella via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 14:06:26 PDT 2015


Author: azanella
Date: Thu Aug 20 16:06:26 2015
New Revision: 245614

URL: http://llvm.org/viewvc/llvm-project?rev=245614&view=rev
Log:
[asan] Fix build issue from r245596

This patch fixes the build issue for:

sanitizer_platform.h:88:4: error: #error "invalid SANITIZER_AARCH64_VMA size"


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h?rev=245614&r1=245613&r2=245614&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h Thu Aug 20 16:06:26 2015
@@ -83,13 +83,12 @@
 
 // VMA size definition for architecture that support multiple sizes.
 // AArch64 has 3 VMA sizes: 39, 42 and 48.
-#if SANITIZER_LINUX && defined(__aarch64__)
+#if !defined(SANITIZER_AARCH64_VMA)
+# define SANITIZER_AARCH64_VMA 39
+#else
 # if SANITIZER_AARCH64_VMA != 39 && SANITIZER_AARCH64_VMA != 42
 #  error "invalid SANITIZER_AARCH64_VMA size"
 # endif
-# ifndef SANITIZER_AARCH64_VMA
-#  define SANITIZER_AARCH64_VMA 39
-# endif
 #endif
 
 // By default we allow to use SizeClassAllocator64 on 64-bit platform.




More information about the llvm-commits mailing list