From 79d90510ce8f0cd7994b09f3fbfdab0d98940a4a Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 24 Nov 2008 13:39:05 +0000 Subject: [PATCH] Use simple assignment instead of memcpy(). [r23937] --- ir/tr/entity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.20.1