summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Analysis.cpp
diff options
context:
space:
mode:
authorMartin Bohme <mboehme@google.com>2016-08-01 12:15:46 +0000
committerMartin Bohme <mboehme@google.com>2016-08-01 12:15:46 +0000
commit78bac52e149ec017c292a724b07cb592ebcb8368 (patch)
treeb3dbd057a7f7d32e04c12062ee3e92dcbaa3e2fb /llvm/lib/CodeGen/Analysis.cpp
parent46f119a59f2cc4b38a9a5be01bf33e684df20866 (diff)
downloadbcm5719-llvm-78bac52e149ec017c292a724b07cb592ebcb8368.tar.gz
bcm5719-llvm-78bac52e149ec017c292a724b07cb592ebcb8368.zip
Make RecursiveASTVisitor visit lambda capture initialization expressions
Summary: Lambda capture initializations are part of the explicit source code and therefore should be visited by default but, so far, RecursiveASTVisitor does not visit them. This appears to be an oversight. Because the lambda body needs custom handling (calling TraverseLambdaBody()), the DEF_TRAVERSE_STMT for LambdaExpr sets ShouldVisitChildren to false but then neglects to visit the lambda capture initializations. This patch adds code to visit the expressions associated with lambda capture initializations. Reviewers: klimek Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D22566 llvm-svn: 277342
Diffstat (limited to 'llvm/lib/CodeGen/Analysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud