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
This commit is contained in:
Richard Sandiford 2019-10-16 10:58:55 +00:00 committed by Richard Sandiford
parent 550a338052
commit 50425706ad
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
* function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
2019-10-16 Richard Sandiford <richard.sandiford@arm.com> 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
* genmodes.c (mode_data::order): New field. * genmodes.c (mode_data::order): New field.

View File

@ -249,12 +249,6 @@ expr_callee_abi (const_tree exp)
if (type == error_mark_node) if (type == error_mark_node)
return default_function_abi; return default_function_abi;
if (POINTER_TYPE_P (type)) gcc_assert (POINTER_TYPE_P (type));
{ return fntype_abi (TREE_TYPE (type));
type = TREE_TYPE (type);
if (type == error_mark_node)
return default_function_abi;
}
return fntype_abi (type);
} }