summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 5bf12e39c10..055a0949018 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -4175,6 +4175,7 @@ void CGOpenMPRuntime::emitTargetOutlinedFunction(
// Emit target region as a standalone region.
auto &&CodeGen = [&CS, &D](CodeGenFunction &CGF) {
CodeGenFunction::OMPPrivateScope PrivateScope(CGF);
+ (void)CGF.EmitOMPFirstprivateClause(D, PrivateScope);
CGF.EmitOMPPrivateClause(D, PrivateScope);
(void)PrivateScope.Privatize();
OpenPOWER on IntegriCloud