Message ID | 20210812185553.GC32351@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Series | Fix condition testing void functions in ipa-split | expand |
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 5e918ee3fbf..c68577d04a9 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -546,8 +546,9 @@ consider_split (class split_point *current, bitmap non_ssa_vars, } } } - if (!VOID_TYPE_P (TREE_TYPE (current_function_decl))) - call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl), + if (!VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl)))) + call_overhead += estimate_move_cost (TREE_TYPE (TREE_TYPE + (current_function_decl)), false); if (current->split_size <= call_overhead)