Use simple assignment instead of memcpy().
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 24 Nov 2008 13:39:05 +0000 (13:39 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 24 Nov 2008 13:39:05 +0000 (13:39 +0000)
[r23937]

ir/tr/entity.c

index 93120dd..59f0f9e 100644 (file)
@@ -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 */