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)
commit330de03083138a9e4d93e9877352016c55abd668
treefab39bf7b2b2bee4fefcc7e57f6852c00d43b3d6
parent77af3812ec50d0ff427cde119ea561e229f50ab2
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

llvm-svn: 220850
12 files changed:
clang/include/clang/AST/Decl.h
clang/include/clang/AST/Stmt.h
clang/include/clang/Basic/Attr.td
clang/lib/AST/Decl.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/ScopeInfo.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/CodeGen/captured-statements-nested.c
clang/test/CodeGen/captured-statements.c