r322112 - [OPENMP] Fix directive kind on stand-alone target data directives, NFC.

Jonas Hahnfeld via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 12:31:58 PST 2018


Why is this NFC and doesn't change a test?

Am 2018-01-09 20:59, schrieb Alexey Bataev via cfe-commits:
> Author: abataev
> Date: Tue Jan  9 11:59:25 2018
> New Revision: 322112
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=322112&view=rev
> Log:
> [OPENMP] Fix directive kind on stand-alone target data directives, NFC.
> 
> Modified:
>     cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp
> 
> Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp?rev=322112&r1=322111&r2=322112&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Tue Jan  9 11:59:25 2018
> @@ -7662,7 +7662,7 @@ void CGOpenMPRuntime::emitTargetDataStan
>      if (D.hasClausesOfKind<OMPDependClause>())
>        CGF.EmitOMPTargetTaskBasedDirective(D, ThenGen, InputInfo);
>      else
> -      emitInlinedDirective(CGF, OMPD_target_update, ThenGen);
> +      emitInlinedDirective(CGF, D.getDirectiveKind(), ThenGen);
>    };
> 
>    if (IfCond)
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list