mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Data-type propagation across RETURN ops
This commit is contained in:
parent
37cc39eaa3
commit
99367e1139
5 changed files with 81 additions and 26 deletions
|
@ -1864,8 +1864,11 @@ void PrintC::emitPrototypeOutput(const FuncProto *proto,
|
|||
PcodeOp *op;
|
||||
Varnode *vn;
|
||||
|
||||
if (fd != (const Funcdata *)0)
|
||||
op = fd->canonicalReturnOp();
|
||||
if (fd != (const Funcdata *)0) {
|
||||
op = fd->getFirstReturnOp();
|
||||
if (op != (PcodeOp *)0 && op->numInput() < 2)
|
||||
op = (PcodeOp *)0;
|
||||
}
|
||||
else
|
||||
op = (PcodeOp *)0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue