aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
index df040b3..d161fa8 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
@@ -209,7 +209,7 @@ static NOINLINE void MapRodata(char* buffer, uptr size) {
void InitializeShadowMemoryPlatform() {
char buffer[256]; // Keep in a different frame.
- MapRodata(buffer, ARRAY_SIZE(buffer));
+ MapRodata(buffer, sizeof(buffer));
}
#endif // #if !SANITIZER_GO