Skip to content

Commit 5f17fcf

Browse files
committed
[NFC][tsan] Use sizeof instead of ARRAY_SIZE
It's the same for char, but it's more appropriate here.
1 parent b31bd6d commit 5f17fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static NOINLINE void MapRodata(char* buffer, uptr size) {
209209

210210
void InitializeShadowMemoryPlatform() {
211211
char buffer[256]; // Keep in a different frame.
212-
MapRodata(buffer, ARRAY_SIZE(buffer));
212+
MapRodata(buffer, sizeof(buffer));
213213
}
214214

215215
#endif // #if !SANITIZER_GO

0 commit comments

Comments
 (0)