Remove useless memset()

This commit is contained in:
Dmitry Stogov 2023-05-04 01:31:34 +03:00
parent d30f523c62
commit 47b0bb0789

1
ir.c
View File

@ -1027,7 +1027,6 @@ void ir_array_grow(ir_array *a, uint32_t size)
{
IR_ASSERT(size > a->size);
a->refs = ir_mem_realloc(a->refs, size * sizeof(ir_ref));
memset(a->refs + a->size, 0, (size - a->size) * sizeof(ir_ref));
a->size = size;
}