summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2013-11-12 01:40:44 +0000
committerFaisal Vali <faisalv@yahoo.com>2013-11-12 01:40:44 +0000
commit524ca28b2b6cd421dd609a132159d38e8e2f1263 (patch)
tree03099b53b8995812ac4ec13d260395626ccd70f4 /clang/lib/Sema/TreeTransform.h
parente9f36afe7dde402eccd05c3ee3e5c00653ddad24 (diff)
downloadbcm5719-llvm-524ca28b2b6cd421dd609a132159d38e8e2f1263.tar.gz
bcm5719-llvm-524ca28b2b6cd421dd609a132159d38e8e2f1263.zip
REFACTOR: Have PushLambdaScope return the LambdaScopeInfo that it creates.
No Functionality change. This refactoring avoids having to call getCurLambda right after PushLambdaScope, to obtain the LambdaScopeInfo that was created during the call to PushLambdaScope. llvm-svn: 194438
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r--clang/lib/Sema/TreeTransform.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 52f647083a2..4b70e702b6b 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -8276,8 +8276,7 @@ template<typename Derived>
ExprResult
TreeTransform<Derived>::TransformLambdaExpr(LambdaExpr *E) {
- getSema().PushLambdaScope();
- LambdaScopeInfo *LSI = getSema().getCurLambda();
+ LambdaScopeInfo *LSI = getSema().PushLambdaScope();
// Transform the template parameters, and add them to the current
// instantiation scope. The null case is handled correctly.
LSI->GLTemplateParameterList = getDerived().TransformTemplateParameterList(
OpenPOWER on IntegriCloud