From d44e3710b57388fd81daefcacb15e7791b5518f8 Mon Sep 17 00:00:00 2001 From: jakub Date: Mon, 19 Feb 2018 19:36:41 +0000 Subject: PR c++/84444 * builtins.c (builtin_mathfn_code): Don't check if CALL_EXPR_FN (t) is ADDR_EXPR. * g++.dg/cpp1z/launder8.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257822 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/builtins.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/builtins.c') diff --git a/gcc/builtins.c b/gcc/builtins.c index 683c6ec6e5b..85affa74510 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -7836,8 +7836,7 @@ builtin_mathfn_code (const_tree t) const_tree argtype, parmtype; const_call_expr_arg_iterator iter; - if (TREE_CODE (t) != CALL_EXPR - || TREE_CODE (CALL_EXPR_FN (t)) != ADDR_EXPR) + if (TREE_CODE (t) != CALL_EXPR) return END_BUILTINS; fndecl = get_callee_fndecl (t); -- cgit v1.2.1