| author | |
| committer | |
| log | 982df37135a5ce2e5e93067d716f096ec614f3ef |
| tree | dc8906662331e00bd897e69fe3ccfa227631a70e |
| parent | d73b0473a1df98703d5c742d59e57e225cfa7ba4 |
1 files changed, 5 insertions(+), 0 deletions(-)
src/codegen/llvm.zig+5| ... | ... | @@ -727,6 +727,11 @@ pub const FuncGen = struct { |
| 727 | 727 | } |
| 728 | 728 | |
| 729 | 729 | fn genRet(self: *FuncGen, inst: *Inst.UnOp) !?*const llvm.Value { |
| 730 | if (!inst.operand.ty.hasCodeGenBits()) { | |
| 731 | // TODO: in astgen these instructions should turn into `retvoid` instructions. | |
| 732 | _ = self.builder.buildRetVoid(); | |
| 733 | return null; | |
| 734 | } | |
| 730 | 735 | _ = self.builder.buildRet(try self.resolveInst(inst.operand)); |
| 731 | 736 | return null; |
| 732 | 737 | } |