Data-type propagation across RETURN ops

This commit is contained in:
caheckman 2020-02-10 11:27:33 -05:00
parent 37cc39eaa3
commit 99367e1139
5 changed files with 81 additions and 26 deletions

View file

@ -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;