@@ -362,7 +362,7 @@ void RedeclarableTemplateDecl::loadLazySpecializationsImpl(
362
362
}
363
363
364
364
bool RedeclarableTemplateDecl::loadLazySpecializationsImpl (
365
- ArrayRef<TemplateArgument> Args, TemplateParameterList *TPL ) const {
365
+ ArrayRef<TemplateArgument> Args) const {
366
366
auto *ExternalSource = getASTContext ().getExternalSource ();
367
367
if (!ExternalSource)
368
368
return false ;
@@ -375,11 +375,11 @@ template <class EntryType, typename... ProfileArguments>
375
375
typename RedeclarableTemplateDecl::SpecEntryTraits<EntryType>::DeclType *
376
376
RedeclarableTemplateDecl::findSpecializationLocally (
377
377
llvm::FoldingSetVector<EntryType> &Specs, void *&InsertPos,
378
- ProfileArguments &&...ProfileArgs) {
378
+ ArrayRef<TemplateArgument> Args, ProfileArguments &&...ProfileArgs) {
379
379
using SETraits = RedeclarableTemplateDecl::SpecEntryTraits<EntryType>;
380
380
381
381
llvm::FoldingSetNodeID ID;
382
- EntryType::Profile (ID, std::forward<ProfileArguments>(ProfileArgs)...,
382
+ EntryType::Profile (ID, Args, std::forward<ProfileArguments>(ProfileArgs)...,
383
383
getASTContext ());
384
384
EntryType *Entry = Specs.FindNodeOrInsertPos (ID, InsertPos);
385
385
return Entry ? SETraits::getDecl (Entry)->getMostRecentDecl () : nullptr ;
@@ -389,18 +389,17 @@ template <class EntryType, typename... ProfileArguments>
389
389
typename RedeclarableTemplateDecl::SpecEntryTraits<EntryType>::DeclType *
390
390
RedeclarableTemplateDecl::findSpecializationImpl (
391
391
llvm::FoldingSetVector<EntryType> &Specs, void *&InsertPos,
392
- ProfileArguments &&...ProfileArgs) {
392
+ ArrayRef<TemplateArgument> Args, ProfileArguments &&...ProfileArgs) {
393
393
394
394
if (auto *Found = findSpecializationLocally (
395
- Specs, InsertPos, std::forward<ProfileArguments>(ProfileArgs)...))
395
+ Specs, InsertPos, Args, std::forward<ProfileArguments>(ProfileArgs)...))
396
396
return Found;
397
397
398
- if (!loadLazySpecializationsImpl (
399
- std::forward<ProfileArguments>(ProfileArgs)...))
398
+ if (!loadLazySpecializationsImpl (Args))
400
399
return nullptr ;
401
400
402
401
return findSpecializationLocally (
403
- Specs, InsertPos, std::forward<ProfileArguments>(ProfileArgs)...);
402
+ Specs, InsertPos, Args, std::forward<ProfileArguments>(ProfileArgs)...);
404
403
}
405
404
406
405
template <class Derived , class EntryType >
0 commit comments