GP-7058 Fix COPY path

This commit is contained in:
caheckman
2026-07-10 20:38:29 +00:00
parent 127b3b6bac
commit b1cb6573ba

View File

@@ -244,13 +244,13 @@ Varnode *ConditionalExecution::resolveIblockRead(PcodeOp *op,int4 inbranch)
{
if (op->code() == CPUI_COPY) {
Varnode *vn = op->getIn(0);
if (vn->isWritten()) {
PcodeOp *defOp = vn->getDef();
if (defOp->code() == CPUI_MULTIEQUAL && defOp->getParent() == iblock)
op = defOp;
}
else
if (!vn->isWritten())
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();
if (opc == CPUI_MULTIEQUAL)