diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-10-30 18:25:12 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-10-30 18:25:12 +0000 |
commit | 98f1dd0bd593fc147bddff45c706542c4c08cadd (patch) | |
tree | 7438c8e1f2225577fff773b15b01ee2bad5604b6 /compiler-rt/lib/sanitizer_common | |
parent | d54d17b6e2fca660f7d1bb5f6753022060e06ff4 (diff) | |
download | bcm5719-llvm-98f1dd0bd593fc147bddff45c706542c4c08cadd.tar.gz bcm5719-llvm-98f1dd0bd593fc147bddff45c706542c4c08cadd.zip |
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
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 9e12c417c71..c7a5ec86fc7 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 } |