mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
More adjustments to boolean propagation
This commit is contained in:
parent
99367e1139
commit
e6f09b141b
4 changed files with 33 additions and 3 deletions
|
@ -291,6 +291,15 @@ bool SubvariableFlow::tryReturnPull(PcodeOp *op,ReplaceVarnode *rvn,int4 slot)
|
|||
return false;
|
||||
if (inworklist)
|
||||
worklist.push_back(rep);
|
||||
else if (retvn->isConstant() && retop != op) {
|
||||
// Trace won't revisit this RETURN, so we need to generate patch now
|
||||
patchlist.push_back(PatchRecord());
|
||||
patchlist.back().type = 2;
|
||||
patchlist.back().pullop = retop;
|
||||
patchlist.back().in1 = rep;
|
||||
patchlist.back().slot = slot;
|
||||
pullcount += 1;
|
||||
}
|
||||
}
|
||||
returnsTraversed = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue