Remove redundant setIP call overwritten a few lines later.

This commit is contained in:
joerg 2018-07-17 18:58:58 +00:00
parent 90dc754a9d
commit 364f0c0b54
1 changed files with 0 additions and 1 deletions

View File

@ -153,7 +153,6 @@ step_result DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pint_t pc,
// The CFA is defined as the stack pointer at the call site. // The CFA is defined as the stack pointer at the call site.
// Therefore the SP is restored by setting it to the CFA. // Therefore the SP is restored by setting it to the CFA.
newRegisters.setSP(cfa); newRegisters.setSP(cfa);
newRegisters.setIP(returnAddress + R::RETURN_OFFSET);
returnAddress += R::RETURN_OFFSET; returnAddress += R::RETURN_OFFSET;
returnAddress &= ~R::RETURN_MASK; returnAddress &= ~R::RETURN_MASK;
newRegisters.setIP(returnAddress); newRegisters.setIP(returnAddress);