Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48f50c7

Browse filesBrowse 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
Copy full SHA for 48f50c7

File tree

Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed

‎clang/lib/AST/DeclTemplate.cpp

Copy file name to clipboardExpand all lines: clang/lib/AST/DeclTemplate.cpp
-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.