summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-01-09 19:59:25 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-01-09 19:59:25 +0000
commit768f1f219c611de901c691f36656b7f2bac3ef82 (patch)
tree9811ab0f6bea8484b26dad973bd2f418d9e8de61 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parente70ececad0aa0fdff590b4fd38ea7fafbae0f2db (diff)
downloadbcm5719-llvm-768f1f219c611de901c691f36656b7f2bac3ef82.tar.gz
bcm5719-llvm-768f1f219c611de901c691f36656b7f2bac3ef82.zip
[OPENMP] Fix directive kind on stand-alone target data directives, NFC.
llvm-svn: 322112
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 5487ee26c4a..d2ccb33bc2a 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -7662,7 +7662,7 @@ void CGOpenMPRuntime::emitTargetDataStandAloneCall(
if (D.hasClausesOfKind<OMPDependClause>())
CGF.EmitOMPTargetTaskBasedDirective(D, ThenGen, InputInfo);
else
- emitInlinedDirective(CGF, OMPD_target_update, ThenGen);
+ emitInlinedDirective(CGF, D.getDirectiveKind(), ThenGen);
};
if (IfCond)
OpenPOWER on IntegriCloud