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

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Wed Sep 8 14:09:32 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 02dece03f93d2ff847c3867e5f655793e29b2877
      https://github.com/llvm/llvm-project/commit/02dece03f93d2ff847c3867e5f655793e29b2877
  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

(cherry picked from commit 68b9d8ed7abe4046992ae1557990edfbb3a772bc)




More information about the All-commits mailing list