]> granicus.if.org Git - clang/commit
Improved capturing variable-length array types in CapturedStmt.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 29 Oct 2014 12:21:55 +0000 (12:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 29 Oct 2014 12:21:55 +0000 (12:21 +0000)
commit4ed019aabebd185a56a7cfa155739ca646452047
treefe9e8c8ea34e1e6600e1c0c6d52e8d683c6bb8a6
parent5926ec6f1e60858350ab783dae8cccfae4322c0c
Improved capturing variable-length array types in CapturedStmt.
An updated implemnentation of VLA types capturing based on previously committed solution for Lambdas.
This version captures the whole VLA type instead of particular variables which are part of VLA size expression and allows to use previusly calculated size of VLA type in captured regions. Required for OpenMP.
Differential Revision: http://reviews.llvm.org/D5099

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220850 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/AST/Decl.h
include/clang/AST/Stmt.h
include/clang/Basic/Attr.td
lib/AST/Decl.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h
lib/Sema/ScopeInfo.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/CodeGen/captured-statements-nested.c
test/CodeGen/captured-statements.c