summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/gcc_personality_v0.c
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-11-16 22:17:36 +0000
committerKamil Rytarowski <n54@gmx.com>2018-11-16 22:17:36 +0000
commit54eaafafbf5669e706dd9863a671fc6154796a1d (patch)
treefd5d15770022c20ea5e45e1c7174f23b42bea642 /compiler-rt/lib/builtins/gcc_personality_v0.c
parent7461cc12fca85b060718a283ec5bf0a6946490d4 (diff)
downloadbcm5719-llvm-54eaafafbf5669e706dd9863a671fc6154796a1d.tar.gz
bcm5719-llvm-54eaafafbf5669e706dd9863a671fc6154796a1d.zip
Cast the 2nd argument of _Unwind_SetIP() to _Unwind_Ptr
This modification is require for NetBSD with GCC, as there is a custom unwind.h header implementation with different types. No functional change intended for others. Cherry-picked chunk from D33878. llvm-svn: 347102
Diffstat (limited to 'compiler-rt/lib/builtins/gcc_personality_v0.c')
-rw-r--r--compiler-rt/lib/builtins/gcc_personality_v0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/gcc_personality_v0.c b/compiler-rt/lib/builtins/gcc_personality_v0.c
index 68581ef1643..5f3af232fa8 100644
--- a/compiler-rt/lib/builtins/gcc_personality_v0.c
+++ b/compiler-rt/lib/builtins/gcc_personality_v0.c
@@ -241,7 +241,7 @@ __gcc_personality_v0(int version, _Unwind_Action actions,
_Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
(uintptr_t)exceptionObject);
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0);
- _Unwind_SetIP(context, (funcStart + landingPad));
+ _Unwind_SetIP(context, (_Unwind_Ptr)(funcStart + landingPad));
return _URC_INSTALL_CONTEXT;
}
}
OpenPOWER on IntegriCloud