projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1c00761
)
- Remove incorrect comment
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 13 May 2007 05:41:16 +0000
(
05:41
+0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 13 May 2007 05:41:16 +0000
(
05:41
+0000)
- Use assignment instead of memcpy()
[r13828]
ir/opt/ifconv.c
patch
|
blob
|
history
diff --git
a/ir/opt/ifconv.c
b/ir/opt/ifconv.c
index
7c87fc3
..
1173ca4
100644
(file)
--- 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");