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
This commit is contained in:
Kamil Rytarowski 2018-10-30 18:25:12 +00:00
parent d54d17b6e2
commit 98f1dd0bd5
1 changed files with 1 additions and 1 deletions

View 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
}