diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-09-24 19:48:22 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-09-24 19:48:22 -0700 |
commit | 5f17fcf3010a8393658d38b41a73c9ef8e06bf6d (patch) | |
tree | cc35a037a3be63a9b76a32eb9c102fac34779afa | |
parent | b31bd6d8046d01a66aa92993bacb56b115a67fc5 (diff) | |
download | llvm-5f17fcf3010a8393658d38b41a73c9ef8e06bf6d.zip llvm-5f17fcf3010a8393658d38b41a73c9ef8e06bf6d.tar.gz llvm-5f17fcf3010a8393658d38b41a73c9ef8e06bf6d.tar.bz2 |
[NFC][tsan] Use sizeof instead of ARRAY_SIZE
It's the same for char, but it's more appropriate here.
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp | 2 |
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 |