summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-10-30 18:25:12 +0000
committerKamil Rytarowski <n54@gmx.com>2018-10-30 18:25:12 +0000
commit98f1dd0bd593fc147bddff45c706542c4c08cadd (patch)
tree7438c8e1f2225577fff773b15b01ee2bad5604b6 /compiler-rt/lib/sanitizer_common
parentd54d17b6e2fca660f7d1bb5f6753022060e06ff4 (diff)
downloadbcm5719-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.cc2
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
}
OpenPOWER on IntegriCloud