aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 45a6383..c2d71f4 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1851,8 +1851,8 @@ expand_call_stmt (gimple stmt)
call is made may be different from the type of the function. */
if (!builtin_p)
CALL_EXPR_FN (exp)
- = fold_build1 (NOP_EXPR, build_pointer_type (gimple_call_fntype (stmt)),
- CALL_EXPR_FN (exp));
+ = fold_convert (build_pointer_type (gimple_call_fntype (stmt)),
+ CALL_EXPR_FN (exp));
TREE_TYPE (exp) = gimple_call_return_type (stmt);
CALL_EXPR_STATIC_CHAIN (exp) = gimple_call_chain (stmt);