From: Richard Biener Date: Fri, 15 Nov 2019 09:38:03 +0000 (+0000) Subject: ipa-inline.c (inline_small_functions): Move assignment to next before call destroying... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e98ac8676256b3a3e47a3558ca564e109f6fc55;p=gcc.git ipa-inline.c (inline_small_functions): Move assignment to next before call destroying edge. 2019-11-15 Richard Biener * ipa-inline.c (inline_small_functions): Move assignment to next before call destroying edge. From-SVN: r278282 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca1c5ac9744..dbc85d5dfc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-15 Richard Biener + + * ipa-inline.c (inline_small_functions): Move assignment + to next before call destroying edge. + 2019-11-15 Richard Biener PR tree-optimization/92039 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 85521ed2888..55e3c5ce15a 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1932,13 +1932,13 @@ inline_small_functions (void) if (has_speculative) for (edge = node->callees; edge; edge = next) { + next = edge->next_callee; if (edge->speculative && !speculation_useful_p (edge, edge->aux != NULL)) { edge->resolve_speculation (); update = true; } - next = edge->next_callee; } if (update) {