aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 8491c77..71e889d 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1230,16 +1230,13 @@ gimple_ic_transform (gimple stmt)
histogram_value histogram;
gcov_type val, count, all, bb_all;
gcov_type prob;
- tree callee;
gimple modify;
struct cgraph_node *direct_call;
if (gimple_code (stmt) != GIMPLE_CALL)
return false;
- callee = gimple_call_fn (stmt);
-
- if (TREE_CODE (callee) == FUNCTION_DECL)
+ if (gimple_call_fndecl (stmt) != NULL_TREE)
return false;
histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INDIR_CALL);