Cast the return value of _Unwind_GetIP() to uptr
authorKamil Rytarowski <n54@gmx.com>
Tue, 30 Oct 2018 18:25:12 +0000 (18:25 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 30 Oct 2018 18:25:12 +0000 (18:25 +0000)
This is needed for NetBSD to match the expected type in
Unwind_GetIP().

llvm-svn: 345620

compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc

index 9e12c41..c7a5ec8 100644 (file)
@@ -97,7 +97,7 @@ uptr Unwind_GetIP(struct _Unwind_Context *ctx) {
   // Clear the Thumb bit.
   return val & ~(uptr)1;
 #else
-  return _Unwind_GetIP(ctx);
+  return (uptr)_Unwind_GetIP(ctx);
 #endif
 }