[Sema] Transform the default arguments of a lambda expression when the
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 16 Dec 2016 21:16:57 +0000 (21:16 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 16 Dec 2016 21:16:57 +0000 (21:16 +0000)
commit40281846a1972e69c0a1bc12c0584fa88391c942
tree211a6cee302d5c33413e94dfed1ac4c7d3254d70
parent193ee2db477f8928b4d311bac2266a8270d0f728
[Sema] Transform the default arguments of a lambda expression when the
lambda expression is instantiated.

Rather than waiting until Sema::CheckCXXDefaultArgExpr tries to
transform the default arguments (which fails because it can't get the
template arguments that are used), transform the default arguments
earlier when the lambda expression is transformed in
TransformLambdaExpr.

rdar://problem/27535319

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

llvm-svn: 289990
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/vartemplate-lambda.cpp