diff options
author | Ben Langmuir <ben.langmuir@intel.com> | 2013-05-03 19:00:33 +0000 |
---|---|---|
committer | Ben Langmuir <ben.langmuir@intel.com> | 2013-05-03 19:00:33 +0000 |
commit | 37943a7af8f6765142af33aa0ba2facc507a1a1c (patch) | |
tree | e7682e3731b9e683f59cdedd18c1e6f4467718fb /clang/lib/Sema/Sema.cpp | |
parent | 231ca1c9299164326493e978d5c1d50082d0a02d (diff) | |
download | bcm5719-llvm-37943a7af8f6765142af33aa0ba2facc507a1a1c.tar.gz bcm5719-llvm-37943a7af8f6765142af33aa0ba2facc507a1a1c.zip |
Move CapturedStmt parameters to CapturedDecl
Move the creation of CapturedStmt parameters out of CodeGen and into
Sema, making it easier to customize the outlined function. The
ImplicitParamDecls are stored in the CapturedDecl using an
ASTContext-allocated array.
Differential Revision: http://llvm-reviews.chandlerc.com/D722
llvm-svn: 181043
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index e9a85821830..72864c5dd09 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -1316,8 +1316,8 @@ IdentifierInfo *Sema::getSuperIdentifier() const { void Sema::PushCapturedRegionScope(Scope *S, CapturedDecl *CD, RecordDecl *RD, CapturedRegionKind K) { - CapturingScopeInfo *CSI = new CapturedRegionScopeInfo(getDiagnostics(), - S, CD, RD, K); + CapturingScopeInfo *CSI = new CapturedRegionScopeInfo(getDiagnostics(), S, CD, RD, + CD->getContextParam(), K); CSI->ReturnType = Context.VoidTy; FunctionScopes.push_back(CSI); } |