mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Fixing some bugs in the new transform framework
This commit is contained in:
parent
e4084b40ee
commit
a8f9d4f7ac
3 changed files with 27 additions and 9 deletions
|
@ -226,6 +226,8 @@ void TransformOp::createReplacement(Funcdata *fd)
|
|||
fd->opSetOpcode(op, opc);
|
||||
while(input.size() < op->numInput())
|
||||
fd->opRemoveInput(op, op->numInput()-1);
|
||||
for(int4 i=0;i<op->numInput();++i)
|
||||
fd->opUnsetInput(op,i); // Clear any remaining inputs
|
||||
while(op->numInput() < input.size())
|
||||
fd->opInsertInput(op, (Varnode *)0, op->numInput()-1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue