From 0d391bbd8faf61265d9cffb9071d33a3fdd8f6fd Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 13 May 2007 05:41:16 +0000 Subject: [PATCH] - Remove incorrect comment - Use assignment instead of memcpy() [r13828] --- ir/opt/ifconv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ir/opt/ifconv.c b/ir/opt/ifconv.c index 7c87fc358..1173ca4df 100644 --- a/ir/opt/ifconv.c +++ b/ir/opt/ifconv.c @@ -341,7 +341,6 @@ restart: DB((dbg, LEVEL_2, "Generating %+F for %+F\n", psi, phi)); } - /* only exchange if we have a Psi */ if (arity == 2) { exchange(phi, psi); } else { @@ -637,10 +636,7 @@ void opt_if_conv(ir_graph *irg, const opt_if_conv_info_t *params) return; /* get the parameters */ - if (params) - memcpy(&p, params, sizeof(p)); - else - memcpy(&p, &default_info, sizeof(p)); + p = (params != NULL ? *params : default_info); FIRM_DBG_REGISTER(dbg, "firm.opt.ifconv"); -- 2.20.1