From: Tom Tromey Date: Sun, 14 Sep 2025 20:32:07 +0000 (-0600) Subject: Remove unnecessary call to set_tid_type X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1ca24ee381e1e7cd6d7bca56ae2c43ec03a3bba;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/ctfread.c b/gdb/ctfread.c index e1739908eda..44870b95786 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -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. */