From 066061fa505a4a4c79380a7e466d8888cc519261 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 15 Jul 2018 02:36:19 -0400 Subject: [PATCH] constant_pool: Remove unnecessary std::memset from constructor AllocateFromCodeSpace() already zeroes out the allocated memory. --- src/backend_x64/constant_pool.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend_x64/constant_pool.cpp b/src/backend_x64/constant_pool.cpp index 80c438fd..fc903f65 100644 --- a/src/backend_x64/constant_pool.cpp +++ b/src/backend_x64/constant_pool.cpp @@ -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(code.AllocateFromCodeSpace(size)); - std::memset(pool_begin, 0, size); current_pool_ptr = pool_begin; }