diff options
author | Richard Guenther <rguenther@suse.de> | 2011-04-08 12:19:45 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-04-08 12:19:45 +0000 |
commit | 9bfc434b7aa052e8d9175d3eca8fc355618e6fab (patch) | |
tree | 77df3037e3807fabf488254798b809e577345502 /gcc/tree-cfg.c | |
parent | 7c1f0b40206bed9fc4b62a04ca9f49c8b9cea4dc (diff) | |
download | gcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.zip gcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.tar.gz gcc-9bfc434b7aa052e8d9175d3eca8fc355618e6fab.tar.bz2 |
gimple.h (gimple_call_fntype): New function.
2011-04-08 Richard Guenther <rguenther@suse.de>
* gimple.h (gimple_call_fntype): New function.
(gimple_call_return_type): Use it.
* expr.c (expand_expr_real_1): Use gimple_call_fntype.
* gimple-low.c (gimple_check_call_args): Likewise.
* gimple.c (gimple_call_flags): Likewise.
(gimple_call_arg_flags): Likewise.
(gimple_call_return_flags): Likewise.
* tree-cfg.c (verify_gimple_call): Likewise.
(do_warn_unused_result): Likewise.
* tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
* value-prof.c (gimple_ic_transform): Fix fndecl check.
From-SVN: r172178
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index e6dac6f..fc8c940 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3086,7 +3086,7 @@ verify_gimple_call (gimple stmt) return true; } - fntype = TREE_TYPE (TREE_TYPE (fn)); + fntype = gimple_call_fntype (stmt); if (gimple_call_lhs (stmt) && !useless_type_conversion_p (TREE_TYPE (gimple_call_lhs (stmt)), TREE_TYPE (fntype)) @@ -7441,7 +7441,7 @@ do_warn_unused_result (gimple_seq seq) LHS. All calls whose value is ignored should be represented like this. Look for the attribute. */ fdecl = gimple_call_fndecl (g); - ftype = TREE_TYPE (TREE_TYPE (gimple_call_fn (g))); + ftype = gimple_call_fntype (g); if (lookup_attribute ("warn_unused_result", TYPE_ATTRIBUTES (ftype))) { |