diff options
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 54ec74ee191..38157caf829 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -106,9 +106,13 @@ along with GCC; see the file COPYING3. If not see #include "intl.h" #include "tree-pass.h" #include "coverage.h" -#include "ggc.h" #include "rtl.h" #include "bitmap.h" +#include "basic-block.h" +#include "tree-ssa-alias.h" +#include "internal-fn.h" +#include "gimple-expr.h" +#include "is-a.h" #include "gimple.h" #include "gimple-ssa.h" #include "ipa-prop.h" @@ -758,7 +762,7 @@ check_callers (struct cgraph_node *node, void *has_hot_call) { if (!can_inline_edge_p (e, true)) return true; - if (!has_hot_call && cgraph_maybe_hot_edge_p (e)) + if (!(*(bool *)has_hot_call) && cgraph_maybe_hot_edge_p (e)) *(bool *)has_hot_call = true; } return false; |