From: Alexey Bataev Date: Tue, 9 Jan 2018 19:59:25 +0000 (+0000) Subject: [OPENMP] Fix directive kind on stand-alone target data directives, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4892b15fb984530d5ba7135f4f57dab1e2adbca2;p=clang [OPENMP] Fix directive kind on stand-alone target data directives, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322112 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntime.cpp b/lib/CodeGen/CGOpenMPRuntime.cpp index 5487ee26c4..d2ccb33bc2 100644 --- a/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/lib/CodeGen/CGOpenMPRuntime.cpp @@ -7662,7 +7662,7 @@ void CGOpenMPRuntime::emitTargetDataStandAloneCall( if (D.hasClausesOfKind()) CGF.EmitOMPTargetTaskBasedDirective(D, ThenGen, InputInfo); else - emitInlinedDirective(CGF, OMPD_target_update, ThenGen); + emitInlinedDirective(CGF, D.getDirectiveKind(), ThenGen); }; if (IfCond)