Skip to content

Commit 48f50c7

Browse files
committed
[Serialization] Load only needed partial specializations
Similar as the last commit, it is unclear why we need to load all specializations, including non-partial ones, when we have a TPL.
1 parent 658d55b commit 48f50c7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/AST/DeclTemplate.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,6 @@ bool RedeclarableTemplateDecl::loadLazySpecializationsImpl(
367367
if (!ExternalSource)
368368
return false;
369369

370-
// If TPL is not null, it implies that we're loading specializations for
371-
// partial templates. We need to load all specializations in such cases.
372-
if (TPL)
373-
return ExternalSource->LoadExternalSpecializations(this->getCanonicalDecl(),
374-
/*OnlyPartial=*/false);
375-
376370
return ExternalSource->LoadExternalSpecializations(this->getCanonicalDecl(),
377371
Args);
378372
}

0 commit comments

Comments
 (0)