[compiler-rt] 39a8743 - [Sanitizer] Remove refactoring leftover [NFC]
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 23 15:12:34 PDT 2021
Author: Julian Lettner
Date: 2021-03-23T15:10:49-07:00
New Revision: 39a8743603d76c69ccd352400162f88bc8a126d5
URL: https://github.com/llvm/llvm-project/commit/39a8743603d76c69ccd352400162f88bc8a126d5
DIFF: https://github.com/llvm/llvm-project/commit/39a8743603d76c69ccd352400162f88bc8a126d5.diff
LOG: [Sanitizer] Remove refactoring leftover [NFC]
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc b/compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc
index 356d240b99616..e3b664f68b618 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc
@@ -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);
More information about the llvm-commits
mailing list