]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unnecessary call to set_tid_type
authorTom Tromey <tom@tromey.com>
Sun, 14 Sep 2025 20:32:07 +0000 (14:32 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 5 Oct 2025 20:59:01 +0000 (14:59 -0600)
ctfread.c:read_typedef_type calls set_tid_type twice, but the second
call is unnecessary.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ctfread.c

index e1739908eda5e2ce3527e1a6e3afc7785d8c790b..44870b957867877db3b6bad4db960374e57af6b0 100644 (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.  */