Remove unnecessary call to set_tid_type

ctfread.c:read_typedef_type calls set_tid_type twice, but the second
call is unnecessary.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2025-09-14 14:32:07 -06:00
parent 0bfd8b3910
commit f1ca24ee38

View File

@@ -888,7 +888,7 @@ read_typedef_type (struct ctf_context *ccp, ctf_id_t tid,
this_type->set_target_is_stub (this_type->target_type () != nullptr);
return set_tid_type (objfile, tid, this_type);
return this_type;
}
/* Read TID of kind CTF_K_POINTER with base type BTID. */