node_cmp_attr_Free() updated to use the new free attribute
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 7 Feb 2005 12:05:11 +0000 (12:05 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 7 Feb 2005 12:05:11 +0000 (12:05 +0000)
[r5033]

ir/ir/iropt.c

index 4b758f9..31e2b21 100644 (file)
@@ -1844,7 +1844,8 @@ static int node_cmp_attr_Alloc(ir_node *a, ir_node *b)
 /** Compares the attributes of two Free nodes. */
 static int node_cmp_attr_Free(ir_node *a, ir_node *b)
 {
-    return (get_irn_free_attr(a) != get_irn_free_attr(b));
+    return (get_irn_free_attr(a).where != get_irn_free_attr(b).where)
+        || (get_irn_free_attr(a).type != get_irn_free_attr(b).type);
 }
 
 /** Compares the attributes of two SymConst nodes. */