[all-commits] [llvm/llvm-project] 49aedd: [clang] NFC: non-type template argument check cleanup

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sun Sep 14 15:31:35 PDT 2025


  Branch: refs/heads/users/mizvekov/GH134461-followup-1
  Home:   https://github.com/llvm/llvm-project
  Commit: 49aedd045ce49801f774613e92fc91900fdcf0be
      https://github.com/llvm/llvm-project/commit/49aedd045ce49801f774613e92fc91900fdcf0be
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-09-14 (Sun, 14 Sep 2025)

  Changed paths:
    M clang/lib/Sema/SemaTemplate.cpp

  Log Message:
  -----------
  [clang] NFC: non-type template argument check cleanup

This is a follow-up to #134461, reverting some unnecessary changes.

This cleans up some checks around the assumption that a pack expansion
on the argument side could appear when checking non-type template arguments
when handling the pre-C++17 rules, but all of these cases are being
handled using the C++17 rules anyway.

This reverts those changes and adds an assert confirming these cases are not
possible.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list