diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-19 17:25:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-19 17:25:09 -0500 |
| commit | 2419f0c91436106f85ea8b6ec183cdaea438a1d0 (patch) | |
| tree | 18c4d72142c50137fff9ace7f8a2139ed2ff6aec /src/ir_print.cpp | |
| parent | 09d50e35a4555d9af2c794390a4375c7fc0e48f7 (diff) | |
| download | zig-2419f0c91436106f85ea8b6ec183cdaea438a1d0.tar.gz zig-2419f0c91436106f85ea8b6ec183cdaea438a1d0.zip | |
IR: support maybe defers
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 6c708e2db4..7ebae91d5a 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -579,7 +579,7 @@ static void ir_print_size_of(IrPrint *irp, IrInstructionSizeOf *instruction) { fprintf(irp->f, ")"); } -static void ir_print_test_null(IrPrint *irp, IrInstructionTestNull *instruction) { +static void ir_print_test_null(IrPrint *irp, IrInstructionTestNonNull *instruction) { fprintf(irp->f, "*"); ir_print_other_instruction(irp, instruction->value); fprintf(irp->f, " != null"); @@ -1012,8 +1012,8 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdSizeOf: ir_print_size_of(irp, (IrInstructionSizeOf *)instruction); break; - case IrInstructionIdTestNull: - ir_print_test_null(irp, (IrInstructionTestNull *)instruction); + case IrInstructionIdTestNonNull: + ir_print_test_null(irp, (IrInstructionTestNonNull *)instruction); break; case IrInstructionIdUnwrapMaybe: ir_print_unwrap_maybe(irp, (IrInstructionUnwrapMaybe *)instruction); |
