[llvm-commits] [llvm] r119993 - /llvm/trunk/include/llvm/System/SwapByteOrder.h
Chris Lattner
sabre at nondot.org
Mon Nov 22 20:19:56 PST 2010
Author: lattner
Date: Mon Nov 22 22:19:56 2010
New Revision: 119993
URL: http://llvm.org/viewvc/llvm-project?rev=119993&view=rev
Log:
fix a bug I introduced on the other side of the #ifdef
Modified:
llvm/trunk/include/llvm/System/SwapByteOrder.h
Modified: llvm/trunk/include/llvm/System/SwapByteOrder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/SwapByteOrder.h?rev=119993&r1=119992&r2=119993&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/SwapByteOrder.h (original)
+++ llvm/trunk/include/llvm/System/SwapByteOrder.h Mon Nov 22 22:19:56 2010
@@ -62,8 +62,8 @@
#elif defined(_MSC_VER) && !defined(_DEBUG)
return _byteswap_uint64(value);
#else
- uint64_t Hi = SwapByteOrder<uint32_t>(uint32_t(value));
- uint32_t Lo = SwapByteOrder<uint32_t>(uint32_t(value >> 32));
+ uint64_t Hi = SwapByteOrder(uint32_t(value));
+ uint32_t Lo = SwapByteOrder(uint32_t(value >> 32));
return (Hi << 32) | Lo;
#endif
}
More information about the llvm-commits
mailing list