Author: marshall Date: Wed Jun 21 11:02:53 2017 New Revision: 305924 URL: http://llvm.org/viewvc/llvm-project?rev=305924&view=rev Log: Change -1LL to -1ULL to silence a gcc warning about left shifting a negative value. Fixes https://bugs.llvm.org/show_bug.cgi?id=33358
Modified: libunwind/trunk/src/AddressSpace.hpp Modified: libunwind/trunk/src/AddressSpace.hpp URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/AddressSpace.hpp?rev=305924&r1=305923&r2=305924&view=diff ============================================================================== --- libunwind/trunk/src/AddressSpace.hpp (original) +++ libunwind/trunk/src/AddressSpace.hpp Wed Jun 21 11:02:53 2017 @@ -168,7 +168,7 @@ inline int64_t LocalAddressSpace::getSLE } while (byte & 0x80); // sign extend negative numbers if ((byte & 0x40) != 0) - result |= (-1LL) << bit; + result |= (-1ULL) << bit; addr = (pint_t) p; return result; } @@ -265,7 +265,7 @@ LocalAddressSpace::getEncodedP(pint_t &a return result; } -#ifdef __APPLE__ +#ifdef __APPLE__ struct dyld_unwind_sections { @@ -284,7 +284,7 @@ LocalAddressSpace::getEncodedP(pint_t &a // In 10.6.x and earlier, we need to implement this functionality. Note // that this requires a newer version of libmacho (from cctools) than is // present in libSystem on 10.6.x (for getsectiondata). - static inline bool _dyld_find_unwind_sections(void* addr, + static inline bool _dyld_find_unwind_sections(void* addr, dyld_unwind_sections* info) { // Find mach-o image containing address. Dl_info dlinfo; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits