[llvm-commits] [poolalloc] r132779 - /poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu Jun 9 09:20:21 PDT 2011
Author: aggarwa4
Date: Thu Jun 9 11:20:21 2011
New Revision: 132779
URL: http://llvm.org/viewvc/llvm-project?rev=132779&view=rev
Log:
Make sure the debug messages are before a return statement.
Modified:
poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Modified: poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c?rev=132779&r1=132778&r2=132779&view=diff
==============================================================================
--- poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c (original)
+++ poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c Thu Jun 9 11:20:21 2011
@@ -146,6 +146,10 @@
uintptr_t p = maskAddress(ptr);
assert(p + size < SIZE);
+#if DEBUG
+ printf("Load: %p, %p = actual: %u, expect: %u | %lu bytes %d \n", ptr, (void *)p, typeNumber, shadow_begin[p], size, tag);
+#endif
+
/* Check if this an initialized but untyped memory.*/
if (typeNumber != shadow_begin[p]) {
if (shadow_begin[p] != 0xFF) {
@@ -171,10 +175,6 @@
break;
}
}
-#if DEBUG
- printf("Load: %p, %p = actual: %u, expect: %u | %lu bytes %d \n", ptr, (void *)p, typeNumber, shadow_begin[p], size, tag);
-#endif
-
}
/**
More information about the llvm-commits
mailing list