Use builtin type when appropriate
There are a few spots that check whether a type is objfile-owned, and then choose either the objfile- or arch-specific builtin type. I don't think there is a need to do this any more (if there ever was), because it is ok for an objfile-allocated type to refer to an arch-allocated type. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
526648585c
commit
426e5b66a7
3 changed files with 4 additions and 17 deletions
|
@ -969,10 +969,7 @@ compile_cplus_convert_func (compile_cplus_instance *instance,
|
|||
GDB's parser used to do. */
|
||||
if (target_type == nullptr)
|
||||
{
|
||||
if (type->is_objfile_owned ())
|
||||
target_type = objfile_type (type->objfile_owner ())->builtin_int;
|
||||
else
|
||||
target_type = builtin_type (type->arch_owner ())->builtin_int;
|
||||
target_type = builtin_type (type->arch ())->builtin_int;
|
||||
warning (_("function has unknown return type; assuming int"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue