From 98f1dd0bd593fc147bddff45c706542c4c08cadd Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Tue, 30 Oct 2018 18:25:12 +0000 Subject: [PATCH] Cast the return value of _Unwind_GetIP() to uptr 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc index 9e12c41..c7a5ec8 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc @@ -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 } -- 2.7.4