summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2013-12-04 22:43:08 +0000
committerFaisal Vali <faisalv@yahoo.com>2013-12-04 22:43:08 +0000
commitbb9071ea8068557929f0b4c96678c725de38b3b6 (patch)
tree6f3ccfeccc2062c9949d7f7e42bf5f24dc52ab9f /llvm/lib/Target
parentcb7119e0977ef5b19a709b2b55b68cc79049d717 (diff)
downloadbcm5719-llvm-bb9071ea8068557929f0b4c96678c725de38b3b6.tar.gz
bcm5719-llvm-bb9071ea8068557929f0b4c96678c725de38b3b6.zip
Fix for PR18052 - Lambdas within NSDMI's and default arguments in Nested classes.
Clang currently croaks on the following: struct X1 { struct X2 { int L = ([] (int i) { return i; })(2); }; }; asserting that the containing lexical context of the lambda is not Sema's cur context, when pushing the lambda's decl context on. This occurs because (prior to this patch) getContainingDC always returns the non-nested class for functions at class scope (even for inline member functions of nested classes (to account for delayed parsing of their bodies)). The patch addresses this by having getContainingDC always return the lexical DC for a lambda's call operator. Link to the bug: http://llvm.org/bugs/show_bug.cgi?id=18052 Link to Richard Smith's feedback on phabricator: http://llvm-reviews.chandlerc.com/D2331 Thanks! llvm-svn: 196423
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud