diff options
| author | James Dennett <jdennett@google.com> | 2013-06-30 03:13:35 +0000 |
|---|---|---|
| committer | James Dennett <jdennett@google.com> | 2013-06-30 03:13:35 +0000 |
| commit | 9ad9959e51087cfe32692f61e951ba3dd6d71974 (patch) | |
| tree | 9c2ac53512a8f4efc89502c79c8177b76542c574 /clang/tools | |
| parent | eb576c0a061bad79b718c71175939bce03ffec3f (diff) | |
| download | bcm5719-llvm-9ad9959e51087cfe32692f61e951ba3dd6d71974.tar.gz bcm5719-llvm-9ad9959e51087cfe32692f61e951ba3dd6d71974.zip | |
Bug fix: Make RecursiveASTVisitor<T>::TraverseLambdaExpr call
WalkUpFromLambdaExpr, so that the Visit* functions are called
on that AST node.
llvm-svn: 185277
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/libclang/RecursiveASTVisitor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/libclang/RecursiveASTVisitor.h b/clang/tools/libclang/RecursiveASTVisitor.h index 17d70d6212e..288d0ab6626 100644 --- a/clang/tools/libclang/RecursiveASTVisitor.h +++ b/clang/tools/libclang/RecursiveASTVisitor.h @@ -2047,6 +2047,8 @@ DEF_TRAVERSE_STMT(CXXTemporaryObjectExpr, { // Walk only the visible parts of lambda expressions. template<typename Derived> bool RecursiveASTVisitor<Derived>::TraverseLambdaExpr(LambdaExpr *S) { + TRY_TO(WalkUpFromLambdaExpr(S)); + for (LambdaExpr::capture_iterator C = S->explicit_capture_begin(), CEnd = S->explicit_capture_end(); C != CEnd; ++C) { |

