From 5b4e4803e24033b092cd7c25bdd2d993ff4d7a85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Wed, 30 Jul 2003 13:49:24 +0000 Subject: [PATCH] bugfix [r1585] --- ir/tr/entity.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 7abe7cf0a..8391547da 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -475,15 +475,16 @@ is_compound_graph_path(void *thing) { /* checks whether nodes 0..pos are correct (all lie on a path.) */ /* @@@ not implemented */ INLINE int is_proper_compound_graph_path(compound_graph_path *gr, int pos) { + int i; entity *node; type *owner = gr->tp; for (i = 0; i <= pos; i++) { node = get_compound_graph_path_node(gr, i); if (get_entity_owner(node) != owner) return false; - type = get_entity_type(node); + owner = get_entity_type(node); } if (pos == get_compound_graph_path_length(gr) -1) - if (!is_atomic_type(type)) return false; + if (!is_atomic_type(owner)) return false; return true; } -- 2.20.1