[llvm-branch-commits] [clang] [clang-tools-extra] [lldb] [clang] fix getTemplateInstantiationArgs (PR #199528)
Younan Zhang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon May 25 19:39:06 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());
----------------
zyn0217 wrote:
Why don't we need TemplateArgs now?
https://github.com/llvm/llvm-project/pull/199528
More information about the llvm-branch-commits
mailing list