GP-5832 Update inline target op when inlining a subfunction

This commit is contained in:
caheckman 2025-07-16 18:29:53 +00:00
parent 0bd8870da3
commit 80d66023a9
5 changed files with 56 additions and 8 deletions

View file

@ -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);
}