[all-commits] [llvm/llvm-project] 68b9d8: [clang] fix transformation of template arguments o...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Sep 7 18:22:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68b9d8ed7abe4046992ae1557990edfbb3a772bc
      https://github.com/llvm/llvm-project/commit/68b9d8ed7abe4046992ae1557990edfbb3a772bc
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M clang/lib/Sema/TreeTransform.h
    M clang/test/CXX/dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp

  Log Message:
  -----------
  [clang] fix transformation of template arguments of 'auto' type constraints

See PR48617.

When assigning the new template arguments to the new TypeLoc, we were looping
on the argument count of the original TypeLoc instead of the new one,
which can be different when packs are present.

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D109406




More information about the All-commits mailing list