[llvm-branch-commits] [clang] [clang-tools-extra] [lldb] [clang] fix getTemplateInstantiationArgs (PR #199528)
Matheus Izvekov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon May 25 20:07:10 PDT 2026
================
@@ -1404,11 +1391,10 @@ bool Sema::SetupConstraintScope(
? FD->getInstantiatedFromMemberFunction()
: FD->getInstantiatedFromDecl();
- InstantiatingTemplate Inst(
- *this, FD->getPointOfInstantiation(),
- Sema::InstantiatingTemplate::ConstraintsCheck{}, InstantiatedFrom,
- TemplateArgs ? *TemplateArgs : ArrayRef<TemplateArgument>{},
- SourceRange());
+ InstantiatingTemplate Inst(*this, FD->getPointOfInstantiation(),
+ Sema::InstantiatingTemplate::ConstraintsCheck{},
+ InstantiatedFrom, ArrayRef<TemplateArgument>(),
+ SourceRange());
----------------
mizvekov wrote:
It's not used here. It is redundant to specify the template args of something that is already a specialization.
https://github.com/llvm/llvm-project/pull/199528
More information about the llvm-branch-commits
mailing list