]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++/modules: Remove unnecessary lazy_load_pendings
authorNathaniel Shead <nathanieloshead@gmail.com>
Mon, 21 Apr 2025 10:09:29 +0000 (20:09 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Tue, 22 Apr 2025 07:25:46 +0000 (17:25 +1000)
This call is not necessary, as we don't access the bodies of any classes
that we instantiate here.

gcc/cp/ChangeLog:

* name-lookup.cc (lookup_imported_hidden_friend): Remove
unnecessary lazy_load_pendings.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/name-lookup.cc

index 165c26bb578e2bc36928b593535ed52e4a559974..aa2dc0e47d39fdb8cf63c045279cf467eb8571b7 100644 (file)
@@ -4556,8 +4556,6 @@ lookup_imported_hidden_friend (tree friend_tmpl)
       || !DECL_MODULE_ENTITY_P (inner))
     return NULL_TREE;
 
-  lazy_load_pendings (friend_tmpl);
-
   tree name = DECL_NAME (inner);
   tree *slot = find_namespace_slot (current_namespace, name, false);
   if (!slot || !*slot || TREE_CODE (*slot) != BINDING_VECTOR)