constant_pool: Remove unnecessary std::memset from constructor

AllocateFromCodeSpace() already zeroes out the allocated memory.
This commit is contained in:
Lioncash 2018-07-15 02:36:19 -04:00 committed by MerryMage
parent 9c4f234417
commit 066061fa50

View file

@ -16,7 +16,6 @@ ConstantPool::ConstantPool(BlockOfCode& code, size_t size) : code(code), pool_si
code.int3();
code.align(align_size);
pool_begin = reinterpret_cast<u8*>(code.AllocateFromCodeSpace(size));
std::memset(pool_begin, 0, size);
current_pool_ptr = pool_begin;
}