aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nrv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-nrv.cc')
-rw-r--r--gcc/tree-nrv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-nrv.cc b/gcc/tree-nrv.cc
index 3be97af..9b514b7 100644
--- a/gcc/tree-nrv.cc
+++ b/gcc/tree-nrv.cc
@@ -385,7 +385,7 @@ pass_return_slot::execute (function *fun)
undesirable warnings with some backends. */
&& !gimple_call_internal_p (stmt)
&& aggregate_value_p (TREE_TYPE (gimple_call_lhs (stmt)),
- gimple_call_fndecl (stmt)))
+ gimple_call_fntype (stmt)))
{
/* Check if the location being assigned to is
clobbered by the call. */