diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-13 19:36:56 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-13 19:36:56 -0500 |
| commit | 647d13168a810936a778cc02e4cc99bd460c1f55 (patch) | |
| tree | c8c1f90b7bfc2fcb2c9369ad8636b39831b456af /src/ir_print.cpp | |
| parent | 3f3630d7e349361116416dce36d2f69d7c3e318c (diff) | |
| download | zig-647d13168a810936a778cc02e4cc99bd460c1f55.tar.gz zig-647d13168a810936a778cc02e4cc99bd460c1f55.zip | |
IR: implement maybe return expression
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index d00ba372b4..8f9001edbd 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -585,7 +585,7 @@ static void ir_print_size_of(IrPrint *irp, IrInstructionSizeOf *instruction) { static void ir_print_test_null(IrPrint *irp, IrInstructionTestNull *instruction) { fprintf(irp->f, "*"); ir_print_other_instruction(irp, instruction->value); - fprintf(irp->f, " == null"); + fprintf(irp->f, " != null"); } static void ir_print_unwrap_maybe(IrPrint *irp, IrInstructionUnwrapMaybe *instruction) { |
