Skip to content

Commit

Permalink
Remove spurious LR save call
Browse files Browse the repository at this point in the history
We're going through the trap code if we encounter a call with a live LR for now--of course that should really never be the case as it should be killed by the call instruction itself.
  • Loading branch information
wrwilliams committed Apr 14, 2017
1 parent ef3fcbe commit 1575b01
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dyninstAPI/src/codegen-power.C
Expand Up @@ -241,7 +241,6 @@ void insnCodeGen::generateLongBranch(codeGen &gen,
}
XLFORM_LK_SET(branchToBr, (isCall ? 1 : 0));
insnCodeGen::generate(gen,branchToBr);
if(save_lr) saveLR();
}

void insnCodeGen::generateBranchViaTrap(codeGen &gen, Address from, Address to, bool isCall) {
Expand Down

0 comments on commit 1575b01

Please sign in to comment.