diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-27 03:48:52 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-27 03:48:52 +0000 |
commit | 59c654aa43756d91da5b5df206db4328936291a5 (patch) | |
tree | 76a68667bb9e5e99dcf8bc99665b662d723d2c0d /clang/lib/CodeGen | |
parent | bdc1fedf1c1ddff21443d3bdeeaee971eec629b1 (diff) | |
download | bcm5719-llvm-59c654aa43756d91da5b5df206db4328936291a5.tar.gz bcm5719-llvm-59c654aa43756d91da5b5df206db4328936291a5.zip |
[OPENMP] Codegen for 'private' clause in 'single' directive.
Emit the following code for 'single' directive with 'private' clause:
if (@__kmpc_single()) {
<default init for privates>
@__kmpc_end_single();
}
Differential Revision: http://reviews.llvm.org/D9238
llvm-svn: 235832
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 12a33dc21f5..5305db8fd21 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -1270,6 +1270,7 @@ void CodeGenFunction::EmitOMPSingleDirective(const OMPSingleDirective &S) { auto &&CodeGen = [&S, &HasFirstprivates](CodeGenFunction &CGF) { CodeGenFunction::OMPPrivateScope SingleScope(CGF); HasFirstprivates = CGF.EmitOMPFirstprivateClause(S, SingleScope); + CGF.EmitOMPPrivateClause(S, SingleScope); (void)SingleScope.Privatize(); CGF.EmitStmt(cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt()); |