[libcxxabi] r204292 - Simplify.
Joerg Sonnenberger
joerg at bec.de
Wed Mar 19 18:28:28 PDT 2014
Author: joerg
Date: Wed Mar 19 20:28:28 2014
New Revision: 204292
URL: http://llvm.org/viewvc/llvm-project?rev=204292&view=rev
Log:
Simplify.
Modified:
libcxxabi/trunk/src/Unwind/libunwind.cpp
Modified: libcxxabi/trunk/src/Unwind/libunwind.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/libunwind.cpp?rev=204292&r1=204291&r2=204292&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/libunwind.cpp (original)
+++ libcxxabi/trunk/src/Unwind/libunwind.cpp Wed Mar 19 20:28:28 2014
@@ -168,13 +168,8 @@ _LIBUNWIND_EXPORT int unw_set_reg(unw_cu
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;
More information about the cfe-commits
mailing list