r313232 - [Headers] Fix the return type of _InterlockedCompareExchange_rel

Martin Storsjo via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 00:04:59 PDT 2017


Author: mstorsjo
Date: Thu Sep 14 00:04:59 2017
New Revision: 313232

URL: http://llvm.org/viewvc/llvm-project?rev=313232&view=rev
Log:
[Headers] Fix the return type of _InterlockedCompareExchange_rel

This was a typo in SVN r282447, where it was added.

Modified:
    cfe/trunk/lib/Headers/intrin.h

Modified: cfe/trunk/lib/Headers/intrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/intrin.h?rev=313232&r1=313231&r2=313232&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/intrin.h (original)
+++ cfe/trunk/lib/Headers/intrin.h Thu Sep 14 00:04:59 2017
@@ -832,7 +832,7 @@ _InterlockedCompareExchange_nf(long vola
                             __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
   return _Comparand;
 }
-static __inline__ short __DEFAULT_FN_ATTRS
+static __inline__ long __DEFAULT_FN_ATTRS
 _InterlockedCompareExchange_rel(long volatile *_Destination,
                               long _Exchange, long _Comparand) {
   __atomic_compare_exchange(_Destination, &_Comparand, &_Exchange, 0,




More information about the cfe-commits mailing list