From 50425706ad8808bba6c062fd5ed1fe88676821d4 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 16 Oct 2019 10:58:55 +0000 Subject: [PATCH] Assert for POINTER_TYPE_P in expr_callee_abi 2019-10-16 Richard Sandiford gcc/ * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P. From-SVN: r277063 --- gcc/ChangeLog | 4 ++++ gcc/function-abi.cc | 10 ++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 56ad96d..1a03ac2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2019-10-16 Richard Sandiford + * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P. + +2019-10-16 Richard Sandiford + * genmodes.c (mode_data::order): New field. (blank_mode): Update accordingly. (VECTOR_MODES_WITH_PREFIX): Add an order parameter. diff --git a/gcc/function-abi.cc b/gcc/function-abi.cc index b4a1839..2c23b49 100644 --- a/gcc/function-abi.cc +++ b/gcc/function-abi.cc @@ -249,12 +249,6 @@ expr_callee_abi (const_tree exp) if (type == error_mark_node) return default_function_abi; - if (POINTER_TYPE_P (type)) - { - type = TREE_TYPE (type); - if (type == error_mark_node) - return default_function_abi; - } - - return fntype_abi (type); + gcc_assert (POINTER_TYPE_P (type)); + return fntype_abi (TREE_TYPE (type)); } -- 2.7.4