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
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 04ff3b15fafdc5c0426a252ae132dc2ad156ed42
diff --git a/src/AddressSpace.hpp b/src/AddressSpace.hpp
index 402cfe0..2ed52a5 100644
--- a/src/AddressSpace.hpp
+++ b/src/AddressSpace.hpp
@@ -168,7 +168,7 @@
} 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 @@
return result;
}
-#ifdef __APPLE__
+#ifdef __APPLE__
struct dyld_unwind_sections
{
@@ -284,7 +284,7 @@
// 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;