diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-10 16:55:07 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-10 16:55:07 -0400 |
| commit | 4f085b8d2c8ffb03dd15b789ad5867904faae13d (patch) | |
| tree | 85d72c0cba9b4a6d6803e3e5dd83210a1699033e /src/ir_print.cpp | |
| parent | eaa9d8bdac7f64e38a39607e5d5574f88f8fe875 (diff) | |
| download | zig-4f085b8d2c8ffb03dd15b789ad5867904faae13d.tar.gz zig-4f085b8d2c8ffb03dd15b789ad5867904faae13d.zip | |
result location semantics for error union wrapping a payload
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 6cad5c1dea..7cff6f3d70 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -985,8 +985,9 @@ static void ir_print_err_wrap_code(IrPrint *irp, IrInstructionErrWrapCode *instr static void ir_print_err_wrap_payload(IrPrint *irp, IrInstructionErrWrapPayload *instruction) { fprintf(irp->f, "@errWrapPayload("); - ir_print_other_instruction(irp, instruction->value); - fprintf(irp->f, ")"); + ir_print_other_instruction(irp, instruction->operand); + fprintf(irp->f, ")result="); + ir_print_other_instruction(irp, instruction->result_loc); } static void ir_print_fn_proto(IrPrint *irp, IrInstructionFnProto *instruction) { |
