[all-commits] [llvm/llvm-project] 2560c1: [clang] Instantiate NTTPs and template default arg...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Tue Oct 25 18:23:26 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2560c1266993af6e6c15900ce673c6db23132f8b
https://github.com/llvm/llvm-project/commit/2560c1266993af6e6c15900ce673c6db23132f8b
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2022-10-26 (Wed, 26 Oct 2022)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaTemplate.cpp
M clang/lib/Sema/SemaTemplateDeduction.cpp
M clang/test/AST/ast-dump-template-decls.cpp
M clang/test/CXX/drs/dr3xx.cpp
M clang/test/CXX/expr/expr.const/p3-0x.cpp
M clang/test/Misc/diag-template-diffing.cpp
M clang/test/SemaTemplate/instantiation-default-1.cpp
M clang/test/SemaTemplate/make_integer_seq.cpp
Log Message:
-----------
[clang] Instantiate NTTPs and template default arguments with sugar
This makes use of the changes introduced in D134604, in order to
instantiate non-type template parameters and default template arguments
with a final sugared substitution.
This comes at no additional relevant cost.
Since we don't track / unique them in specializations, we wouldn't be
able to resugar them later anyway.
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Differential Revision: https://reviews.llvm.org/D136564
More information about the All-commits
mailing list