mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-5832 Update inline target op when inlining a subfunction
This commit is contained in:
parent
0bd8870da3
commit
80d66023a9
5 changed files with 56 additions and 8 deletions
|
@ -880,8 +880,10 @@ int4 Funcdata::inlineFlow(Funcdata *inlinefd,FlowInfo &flow,PcodeOp *callop)
|
|||
--oiter;
|
||||
PcodeOp *lastop = *oiter;
|
||||
obank.moveSequenceDead(firstop,lastop,callop); // Move cloned sequence to right after callop
|
||||
if (callop->isBlockStart())
|
||||
if (callop->isBlockStart()) {
|
||||
firstop->setFlag(PcodeOp::startbasic); // First op of inline inherits callop's startbasic flag
|
||||
flow.updateTarget(callop, firstop);
|
||||
}
|
||||
else
|
||||
firstop->clearFlag(PcodeOp::startbasic);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue