projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eddc0b
)
Use simple assignment instead of memcpy().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 24 Nov 2008 13:39:05 +0000
(13:39 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 24 Nov 2008 13:39:05 +0000
(13:39 +0000)
[r23937]
ir/tr/entity.c
patch
|
blob
|
history
diff --git
a/ir/tr/entity.c
b/ir/tr/entity.c
index
93120dd
..
59f0f9e
100644
(file)
--- a/
ir/tr/entity.c
+++ b/
ir/tr/entity.c
@@
-236,7
+236,7
@@
static ir_entity *deep_entity_copy(ir_entity *old)
{
ir_entity *newe = XMALLOC(ir_entity);
-
memcpy(newe, old, sizeof(*newe))
;
+
*newe = *old
;
if (is_compound_entity(old)) {
if (old->has_initializer) {
/* FIXME: the initializers are NOT copied */