diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-10-16 10:58:55 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-10-16 10:58:55 +0000 |
commit | 50425706ad8808bba6c062fd5ed1fe88676821d4 (patch) | |
tree | 877b010da52baeb615c41da2b9ef887ec75f14f5 /gcc/function-abi.cc | |
parent | 550a338052c374cb1f6c07ffd883c4046565fdd4 (diff) | |
download | gcc-50425706ad8808bba6c062fd5ed1fe88676821d4.zip gcc-50425706ad8808bba6c062fd5ed1fe88676821d4.tar.gz gcc-50425706ad8808bba6c062fd5ed1fe88676821d4.tar.bz2 |
Assert for POINTER_TYPE_P in expr_callee_abi
2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
From-SVN: r277063
Diffstat (limited to 'gcc/function-abi.cc')
-rw-r--r-- | gcc/function-abi.cc | 10 |
1 files changed, 2 insertions, 8 deletions
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)); } |