[CodeGen] Fix a regression by emitting lambda expressions in EmitLValue
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 2 Apr 2019 19:48:07 +0000 (19:48 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 2 Apr 2019 19:48:07 +0000 (19:48 +0000)
commit3299ead8e9ff3d65ff133518d4df84dc2a424c72
treefbb2aa02caa8f98a5eca7e3c87664f741c434980
parent0fd3c68c1a753f947fd91d5aad3a366234fb6f3d
[CodeGen] Fix a regression by emitting lambda expressions in EmitLValue

This ability was removed in r351487, but it's needed when a lambda appears as an
OpaqueValueExpr subexpression of a PseudoObjectExpr.

rdar://49030379

Differential revision: https://reviews.llvm.org/D60099

llvm-svn: 357515
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGenObjCXX/property-lvalue-lambda.mm [new file with mode: 0644]