[compiler-rt] r345620 - Cast the return value of _Unwind_GetIP() to uptr

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 11:25:12 PDT 2018


Author: kamil
Date: Tue Oct 30 11:25:12 2018
New Revision: 345620

URL: http://llvm.org/viewvc/llvm-project?rev=345620&view=rev
Log:
Cast the return value of _Unwind_GetIP() to uptr

This is needed for NetBSD to match the expected type in
Unwind_GetIP().

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc?rev=345620&r1=345619&r2=345620&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc Tue Oct 30 11:25:12 2018
@@ -97,7 +97,7 @@ uptr Unwind_GetIP(struct _Unwind_Context
   // Clear the Thumb bit.
   return val & ~(uptr)1;
 #else
-  return _Unwind_GetIP(ctx);
+  return (uptr)_Unwind_GetIP(ctx);
 #endif
 }
 




More information about the llvm-commits mailing list