From a5f868ce0337613ccdc7ad0e1d2397d3c5851da4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Nov 2010 04:26:12 +0000 Subject: [PATCH] fix this harder. llvm-svn: 119994 --- llvm/include/llvm/System/SwapByteOrder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/System/SwapByteOrder.h b/llvm/include/llvm/System/SwapByteOrder.h index fb033a52ef7e..70a6f4d65ab2 100644 --- a/llvm/include/llvm/System/SwapByteOrder.h +++ b/llvm/include/llvm/System/SwapByteOrder.h @@ -62,8 +62,8 @@ inline uint64_t SwapByteOrder_64(uint64_t value) { #elif defined(_MSC_VER) && !defined(_DEBUG) return _byteswap_uint64(value); #else - uint64_t Hi = SwapByteOrder(uint32_t(value)); - uint32_t Lo = SwapByteOrder(uint32_t(value >> 32)); + uint64_t Hi = SwapByteOrder_32(uint32_t(value)); + uint32_t Lo = SwapByteOrder_32(uint32_t(value >> 32)); return (Hi << 32) | Lo; #endif }