Remove code that tries to avoid transforming non-dependent call operator types
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:53:14 +0000 (23:53 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:53:14 +0000 (23:53 +0000)
commit01014cee76f2da9df70c9e17bebaebf7f0a52c6d
treec129b0b972c0c8149697ff3a9035176f388f2e31
parent343c395f11fc1888d318ad13e19f71eb6b99cc68
Remove code that tries to avoid transforming non-dependent call operator types
for lambda expressions. That can't ever work; we need to transform the
parameters in order to create new ones in the new call operator context.

Fixes a rejects-valid when transforming a context containing a
lambda-expression that uses its function parameters in C++14 mode.

llvm-svn: 222482
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/lambda-expressions.cpp