From: Christoph Mallon Date: Mon, 24 Nov 2008 13:39:05 +0000 (+0000) Subject: Use simple assignment instead of memcpy(). X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=79d90510ce8f0cd7994b09f3fbfdab0d98940a4a;p=libfirm Use simple assignment instead of memcpy(). [r23937] --- diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 93120dd54..59f0f9ec2 100644 --- 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 */