diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-06-21 16:02:53 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-06-21 16:02:53 +0000 |
commit | 04ff3b15fafdc5c0426a252ae132dc2ad156ed42 (patch) | |
tree | bec65402cfc38871a69fea3ba1e6436403b54fbb /libunwind/src/AddressSpace.hpp | |
parent | 851a3d9f051fa9fa3b4c44e6c342cc35a055c999 (diff) | |
download | bcm5719-llvm-04ff3b15fafdc5c0426a252ae132dc2ad156ed42.tar.gz bcm5719-llvm-04ff3b15fafdc5c0426a252ae132dc2ad156ed42.zip |
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
llvm-svn: 305924
Diffstat (limited to 'libunwind/src/AddressSpace.hpp')
-rw-r--r-- | libunwind/src/AddressSpace.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp index 402cfe0c1c2..2ed52a5583c 100644 --- a/libunwind/src/AddressSpace.hpp +++ b/libunwind/src/AddressSpace.hpp @@ -168,7 +168,7 @@ inline int64_t LocalAddressSpace::getSLEB128(pint_t &addr, pint_t end) { } 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 &addr, pint_t end, uint8_t encoding, return result; } -#ifdef __APPLE__ +#ifdef __APPLE__ struct dyld_unwind_sections { @@ -284,7 +284,7 @@ LocalAddressSpace::getEncodedP(pint_t &addr, pint_t end, uint8_t encoding, // 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; |