summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2013-09-06 18:03:48 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2013-09-06 18:03:48 +0000
commit758e55ee58d6835706d1b2dc31090c920bd50603 (patch)
tree02c3c426d35e45c8cc5e98f453b43f5bf3f9bdf5 /clang/lib/CodeGen/CGStmt.cpp
parentb248b4a1deca374e2b7909eb30a5cee0abeca4bc (diff)
downloadbcm5719-llvm-758e55ee58d6835706d1b2dc31090c920bd50603.tar.gz
bcm5719-llvm-758e55ee58d6835706d1b2dc31090c920bd50603.zip
OpenMP: Data-sharing attributes analysis and clause 'shared' (fixed test threadprivate_messages.cpp)
llvm-svn: 190183
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 7af7725c3a5..e3095403f91 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -136,8 +136,10 @@ void CodeGenFunction::EmitStmt(const Stmt *S) {
case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break;
case Stmt::GCCAsmStmtClass: // Intentional fall-through.
case Stmt::MSAsmStmtClass: EmitAsmStmt(cast<AsmStmt>(*S)); break;
- case Stmt::CapturedStmtClass:
- EmitCapturedStmt(cast<CapturedStmt>(*S), CR_Default);
+ case Stmt::CapturedStmtClass: {
+ const CapturedStmt *CS = cast<CapturedStmt>(S);
+ EmitCapturedStmt(*CS, CS->getCapturedRegionKind());
+ }
break;
case Stmt::ObjCAtTryStmtClass:
EmitObjCAtTryStmt(cast<ObjCAtTryStmt>(*S));
OpenPOWER on IntegriCloud