[Sanitizer] Remove refactoring leftover [NFC]
authorJulian Lettner <julian.lettner@apple.com>
Tue, 23 Mar 2021 22:09:13 +0000 (15:09 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Tue, 23 Mar 2021 22:10:49 +0000 (15:10 -0700)
compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc

index 356d240..e3b664f 100644 (file)
@@ -120,10 +120,6 @@ INTERCEPTOR(int, malloc_make_nonpurgeable, void *ptr) {
 
 INTERCEPTOR(void, malloc_set_zone_name, malloc_zone_t *zone, const char *name) {
   COMMON_MALLOC_ENTER();
-  // Allocate |sizeof(COMMON_MALLOC_ZONE_NAME "-") + internal_strlen(name)|
-  // bytes.
-  size_t buflen =
-      sizeof(COMMON_MALLOC_ZONE_NAME "-") + (name ? internal_strlen(name) : 0);
   InternalScopedString new_name;
   if (name && zone->introspect == sanitizer_zone.introspect) {
     new_name.append(COMMON_MALLOC_ZONE_NAME "-%s", name);