GP-5184_PtrsubUndoFix

This commit is contained in:
caheckman 2024-12-16 20:29:08 +00:00
parent 420dd7ce0c
commit 21a6a276b2
10 changed files with 66 additions and 47 deletions

View file

@ -565,7 +565,7 @@ void Funcdata::opUndoPtradd(PcodeOp *op,bool finalize)
newVal &= calc_mask(offVn->getSize());
Varnode *newOffVn = newConstant(offVn->getSize(), newVal);
if (finalize)
newOffVn->updateType(offVn->getTypeReadFacing(op), false, false);
newOffVn->updateType(offVn->getTypeReadFacing(op));
opSetInput(op,newOffVn,1);
return;
}
@ -573,7 +573,7 @@ void Funcdata::opUndoPtradd(PcodeOp *op,bool finalize)
opSetOpcode(multOp,CPUI_INT_MULT);
Varnode *addVn = newUniqueOut(offVn->getSize(),multOp);
if (finalize) {
addVn->updateType(multVn->getType(), false, false);
addVn->updateType(multVn->getType());
addVn->setImplied();
}
opSetInput(multOp,offVn,0);