@@ -382,12 +382,11 @@ template <class EntryType, typename... ProfileArguments>
382382typename RedeclarableTemplateDecl::SpecEntryTraits<EntryType>::DeclType *
383383RedeclarableTemplateDecl::findSpecializationLocally (
384384 llvm::FoldingSetVector<EntryType> &Specs, void *&InsertPos,
385- ProfileArguments && ...ProfileArgs) {
385+ ProfileArguments... ProfileArgs) {
386386 using SETraits = RedeclarableTemplateDecl::SpecEntryTraits<EntryType>;
387387
388388 llvm::FoldingSetNodeID ID;
389- EntryType::Profile (ID, std::forward<ProfileArguments>(ProfileArgs)...,
390- getASTContext ());
389+ EntryType::Profile (ID, ProfileArgs..., getASTContext ());
391390 EntryType *Entry = Specs.FindNodeOrInsertPos (ID, InsertPos);
392391 return Entry ? SETraits::getDecl (Entry)->getMostRecentDecl () : nullptr ;
393392}
@@ -396,18 +395,15 @@ template <class EntryType, typename... ProfileArguments>
396395typename RedeclarableTemplateDecl::SpecEntryTraits<EntryType>::DeclType *
397396RedeclarableTemplateDecl::findSpecializationImpl (
398397 llvm::FoldingSetVector<EntryType> &Specs, void *&InsertPos,
399- ProfileArguments && ...ProfileArgs) {
398+ ProfileArguments... ProfileArgs) {
400399
401- if (auto *Found = findSpecializationLocally (
402- Specs, InsertPos, std::forward<ProfileArguments>(ProfileArgs)...))
400+ if (auto *Found = findSpecializationLocally (Specs, InsertPos, ProfileArgs...))
403401 return Found;
404402
405- if (!loadLazySpecializationsImpl (
406- std::forward<ProfileArguments>(ProfileArgs)...))
403+ if (!loadLazySpecializationsImpl (ProfileArgs...))
407404 return nullptr ;
408405
409- return findSpecializationLocally (
410- Specs, InsertPos, std::forward<ProfileArguments>(ProfileArgs)...);
406+ return findSpecializationLocally (Specs, InsertPos, ProfileArgs...);
411407}
412408
413409template <class Derived , class EntryType >
0 commit comments