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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 12:54:14 PST 2018


These changes are just cosmetic, it does not affect real codegen for
target data directives.

-------------
Best regards,
Alexey Bataev

09.01.2018 15:31, Jonas Hahnfeld via cfe-commits пишет:
> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180109/fa4e43ad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180109/fa4e43ad/attachment.sig>


More information about the cfe-commits mailing list