[clang] [Clang][Sema] Refactor collection of multi-level template argument lists (PR #106585)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 17 14:13:40 PDT 2024
================
@@ -585,8 +585,8 @@ static bool CheckConstraintSatisfaction(
ArrayRef<TemplateArgument> TemplateArgs =
TemplateArgsLists.getNumSubstitutedLevels() > 0
- ? TemplateArgsLists.getOutermost()
- : ArrayRef<TemplateArgument> {};
+ ? TemplateArgsLists.getInnermost()
----------------
erichkeane wrote:
Ok, makes sense. I am SOMEWHAT remembering that at the time we assumed that >0 meant ==1 at the time, and 'getInnermost' wasn't actually in existence at the time. So either it was typed confusingly in the 1st place, or things have changed in the meantime. Either way, probably bitrot here.
https://github.com/llvm/llvm-project/pull/106585
More information about the cfe-commits
mailing list