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:
parent
550a338052
commit
50425706ad
@ -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.
|
||||||
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user