diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-01-01 09:49:44 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-01-01 09:49:44 +0000 |
commit | 602cfe7d62578359e4ba8b29839712dce67fe7a4 (patch) | |
tree | 2b36887c897c942e0f253f0b265a0f87bb37b68b /llvm/lib | |
parent | 74ec80206597ce4b37ebfdb411a32178a0401d7c (diff) | |
download | bcm5719-llvm-602cfe7d62578359e4ba8b29839712dce67fe7a4.tar.gz bcm5719-llvm-602cfe7d62578359e4ba8b29839712dce67fe7a4.zip |
CodeGen: Don't crash when a lambda uses a local constexpr variable
The DeclRefExpr might be for a variable initialized by a constant
expression which hasn't been ODR used.
Emit the initializer for the variable instead of trying to capture the
variable itself.
This fixes PR22071.
llvm-svn: 225060
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions