2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
From-SVN: r277063
+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>
* genmodes.c (mode_data::order): New field.
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));
}