mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-7058 Fix COPY path
This commit is contained in:
@@ -244,13 +244,13 @@ Varnode *ConditionalExecution::resolveIblockRead(PcodeOp *op,int4 inbranch)
|
|||||||
{
|
{
|
||||||
if (op->code() == CPUI_COPY) {
|
if (op->code() == CPUI_COPY) {
|
||||||
Varnode *vn = op->getIn(0);
|
Varnode *vn = op->getIn(0);
|
||||||
if (vn->isWritten()) {
|
if (!vn->isWritten())
|
||||||
PcodeOp *defOp = vn->getDef();
|
|
||||||
if (defOp->code() == CPUI_MULTIEQUAL && defOp->getParent() == iblock)
|
|
||||||
op = defOp;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return vn;
|
return vn;
|
||||||
|
PcodeOp *defOp = vn->getDef();
|
||||||
|
if (defOp->code() == CPUI_MULTIEQUAL && defOp->getParent() == iblock)
|
||||||
|
op = defOp;
|
||||||
|
else
|
||||||
|
return vn; // We know defOp is not in iblock
|
||||||
}
|
}
|
||||||
OpCode opc = op->code();
|
OpCode opc = op->code();
|
||||||
if (opc == CPUI_MULTIEQUAL)
|
if (opc == CPUI_MULTIEQUAL)
|
||||||
|
|||||||
Reference in New Issue
Block a user