From f1ca24ee381e1e7cd6d7bca56ae2c43ec03a3bba Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 14 Sep 2025 14:32:07 -0600 Subject: [PATCH] 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 --- gdb/ctfread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.47.3