[llvm-commits] [compiler-rt] r162748 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Kostya Serebryany kcc at google.com
Tue Aug 28 04:54:51 PDT 2012


Author: kcc
Date: Tue Aug 28 06:54:51 2012
New Revision: 162748

URL: http://llvm.org/viewvc/llvm-project?rev=162748&view=rev
Log:
[asan] some renaming before we move StackTrace into sanitizer_common (part 2)

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

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=162748&r1=162747&r2=162748&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Aug 28 06:54:51 2012
@@ -134,6 +134,8 @@
 
 #define COMPILER_CHECK(pred) IMPL_COMPILER_ASSERT(pred, __LINE__)
 
+#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
+
 #define IMPL_PASTE(a, b) a##b
 #define IMPL_COMPILER_ASSERT(pred, line) \
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1];





More information about the llvm-commits mailing list