summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/src')
-rw-r--r--libcxxabi/src/Unwind/libunwind.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcxxabi/src/Unwind/libunwind.cpp b/libcxxabi/src/Unwind/libunwind.cpp
index 59ff4a70f17..3ce1b9ee85f 100644
--- a/libcxxabi/src/Unwind/libunwind.cpp
+++ b/libcxxabi/src/Unwind/libunwind.cpp
@@ -168,13 +168,8 @@ _LIBUNWIND_EXPORT int unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum,
co->setReg(regNum, (pint_t)value);
// specical case altering IP to re-find info (being called by personality
// function)
- if (regNum == UNW_REG_IP) {
- unw_proc_info_t info;
- co->getInfo(&info);
- pint_t orgArgSize = (pint_t)info.gp;
- uint64_t orgFuncStart = info.start_ip;
+ if (regNum == UNW_REG_IP)
co->setInfoBasedOnIPRegister(false);
- }
return UNW_ESUCCESS;
}
return UNW_EBADREG;
OpenPOWER on IntegriCloud