summaryrefslogtreecommitdiffhomepage
path: root/ir/be/amd64
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-25 13:06:07 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-25 13:06:07 +0100
commit026e48ad8cbd83a608c1132443fa5064c0bb686a (patch)
tree7e6525542b0f622a1f6049405fea3deb34506de7 /ir/be/amd64
parent6058dbb9789dbd6952089b73fd2ec086936461b0 (diff)
Zero out the result struct in x86_create_address_mode() instead of in each caller.
Diffstat (limited to 'ir/be/amd64')
-rw-r--r--ir/be/amd64/amd64_transform.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ir/be/amd64/amd64_transform.c b/ir/be/amd64/amd64_transform.c
index 0e1b58e..16cdc20 100644
--- a/ir/be/amd64/amd64_transform.c
+++ b/ir/be/amd64/amd64_transform.c
@@ -638,7 +638,6 @@ static bool use_address_matching(ir_mode *mode, match_flags_t flags,
static void perform_address_matching_flags(ir_node *const ptr, int *const arity, ir_node **const in, x86_addr_t *const addr, x86_create_am_flags_t const flags)
{
x86_address_t maddr;
- memset(&maddr, 0, sizeof(maddr));
x86_create_address_mode(&maddr, ptr, flags);
x86_addr_variant_t variant = maddr.variant;