diff options
author | Devin Coughlin <dcoughlin@apple.com> | 2015-11-15 03:07:17 +0000 |
---|---|---|
committer | Devin Coughlin <dcoughlin@apple.com> | 2015-11-15 03:07:17 +0000 |
commit | e69b043088388837a744a2463902b39b320a4d2f (patch) | |
tree | beaea6c18b8df3bd367c3c2a94b7362e2d494657 /clang/lib/Parse/ParseDecl.cpp | |
parent | 7f77eb90a54c96168d6cce8ad3a85d1454cdb80c (diff) | |
download | bcm5719-llvm-e69b043088388837a744a2463902b39b320a4d2f.tar.gz bcm5719-llvm-e69b043088388837a744a2463902b39b320a4d2f.zip |
[analyzer] Refer to capture field to determine if capture is reference.
The analyzer incorrectly treats captures as references if either the original
captured variable is a reference or the variable is captured by reference.
This causes the analyzer to crash when capturing a reference type by copy
(PR24914). Fix this by refering solely to the capture field to determine when a
DeclRefExpr for a lambda capture should be treated as a reference type.
https://llvm.org/bugs/show_bug.cgi?id=24914
rdar://problem/23524412
llvm-svn: 253157
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions