diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 2a659cce1ef..e02fa17e403 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4023,7 +4023,7 @@ build_op_delete_call (enum tree_code code, tree addr, tree size, /* The placement args might not be suitable for overload resolution at this point, so build the call directly. */ mark_used (fn); - return build_cxx_call (fn, args, args); + return build_cxx_call (fn, args); } else return build_function_call (fn, args); @@ -4843,33 +4843,19 @@ build_over_call (struct z_candidate *cand, int flags) else fn = build_addr_func (fn); - return build_cxx_call (fn, args, converted_args); + return build_cxx_call (fn, converted_args); } -/* Build and return a call to FN, using the the CONVERTED_ARGS. ARGS - gives the original form of the arguments. This function performs +/* Build and return a call to FN, using ARGS. This function performs no overload resolution, conversion, or other high-level operations. */ tree -build_cxx_call(tree fn, tree args, tree converted_args) +build_cxx_call (tree fn, tree args) { tree fndecl; - /* Recognize certain built-in functions so we can make tree-codes - other than CALL_EXPR. We do this when it enables fold-const.c - to do something useful. */ - if (TREE_CODE (fn) == ADDR_EXPR - && TREE_CODE (TREE_OPERAND (fn, 0)) == FUNCTION_DECL - && DECL_BUILT_IN (TREE_OPERAND (fn, 0))) - { - tree exp; - exp = expand_tree_builtin (TREE_OPERAND (fn, 0), args, converted_args); - if (exp) - return exp; - } - - fn = build_call (fn, converted_args); + fn = build_call (fn, args); /* If this call might throw an exception, note that fact. */ fndecl = get_callee_fndecl (fn); |