mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 01:16:05 +00:00
[Sanitizer] Remove refactoring leftover [NFC]
This commit is contained in:
parent
53196387c2
commit
39a8743603
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user