diff options
author | Tareq A. Siraj <tareq.a.sriaj@intel.com> | 2013-04-16 19:37:38 +0000 |
---|---|---|
committer | Tareq A. Siraj <tareq.a.sriaj@intel.com> | 2013-04-16 19:37:38 +0000 |
commit | 6dfa25a19f3f28fcdc4a4c0130bf4a6fcdce0cd1 (patch) | |
tree | e4355c0d4969b0173e9b0a10d4ed67d60a2f6994 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 93383381d7fc1c80b3dd8711164ad858a95718ff (diff) | |
download | llvm-6dfa25a19f3f28fcdc4a4c0130bf4a6fcdce0cd1.zip llvm-6dfa25a19f3f28fcdc4a4c0130bf4a6fcdce0cd1.tar.gz llvm-6dfa25a19f3f28fcdc4a4c0130bf4a6fcdce0cd1.tar.bz2 |
Sema for Captured Statements
Add CapturedDecl to be the DeclContext for CapturedStmt, and perform semantic
analysis. Currently captures all variables by reference.
TODO: templates
Author: Ben Langmuir <ben.langmuir@intel.com>
Differential Revision: http://llvm-reviews.chandlerc.com/D433
llvm-svn: 179618
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 15bb6a6..173ca6c 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -70,6 +70,7 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::Friend: case Decl::FriendTemplate: case Decl::Block: + case Decl::Captured: case Decl::ClassScopeFunctionSpecialization: llvm_unreachable("Declaration should not be in declstmts!"); case Decl::Function: // void X(); |