fix error introduced by r22215
authorMatthias Braun <matze@braunis.de>
Wed, 24 Sep 2008 09:19:03 +0000 (09:19 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 24 Sep 2008 09:19:03 +0000 (09:19 +0000)
[r22230]

ir/opt/opt_inline.c

index b6e368f..e482c65 100644 (file)
@@ -2131,8 +2131,11 @@ void inline_functions(int maxsize, int inline_threshold) {
                        callee = curr_call->callee;
 
                        prop = get_irg_inline_property(callee);
-                       if (prop == irg_inline_forbidden || get_irg_additional_properties(callee) & mtp_property_weak) {
+                       if (prop == irg_inline_forbidden
+                                       || (get_irg_additional_properties(callee) & mtp_property_weak)) {
                                /* do not inline forbidden / weak graphs */
+                               last_call = &curr_call->next;
+                               curr_call = curr_call->next;
                                continue;
                        }