aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-02-19 20:36:41 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-02-19 20:36:41 +0100
commit5f92d10993787fa2074ca87117f9b92d4c8a2b3c (patch)
tree3627fee54e76c10d34aa38ed7d4a8cd04dc80da2 /gcc/builtins.c
parent4382537df8cc3d0d8622af606e4ce580d1bb4c80 (diff)
downloadgcc-5f92d10993787fa2074ca87117f9b92d4c8a2b3c.zip
gcc-5f92d10993787fa2074ca87117f9b92d4c8a2b3c.tar.gz
gcc-5f92d10993787fa2074ca87117f9b92d4c8a2b3c.tar.bz2
re PR c++/84444 (ICE with __builtin_launder and cast)
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. From-SVN: r257822
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 683c6ec..85affa7 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);