diff options
Diffstat (limited to 'src/decompiler.cc')
-rw-r--r-- | src/decompiler.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/decompiler.cc b/src/decompiler.cc index 936e0553..76d9e873 100644 --- a/src/decompiler.cc +++ b/src/decompiler.cc @@ -398,6 +398,14 @@ struct Decompiler { return WrapChild(args[0], "if (", ") " + std::string(jmp) + " " + bie->var.name()); } + case ExprType::Return: { + return WrapNAry(args, "return ", ""); + } + case ExprType::Drop: { + // Silent dropping of return values is very common, so currently + // don't output this. + return std::move(args[0]); + } default: { std::string name; switch (n.etype) { |