]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fix directive kind on stand-alone target data directives, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Jan 2018 19:59:25 +0000 (19:59 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Jan 2018 19:59:25 +0000 (19:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp

index 5487ee26c4a61559e8c43a2bd2e91453fe5572d7..d2ccb33bc2acce10e8e8ad93f35c537019051b5e 100644 (file)
@@ -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)