BugFix: works again for RAW with non twos-complement
[libfirm] / ir / ir / iropt.c
index cd529ef..8460b8e 100644 (file)
@@ -5344,6 +5344,9 @@ static ir_node *transform_node_End(ir_node *n) {
                        continue;
                } else if (is_irn_pinned_in_irg(ka) && is_Block_dead(get_nodes_block(ka))) {
                        continue;
+               } else if (is_Bad(ka)) {
+                       /* no need to keep Bad */
+                       continue;
                }
                in[j++] = ka;
        }