diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-02 14:16:46 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-02 14:16:46 -0400 |
| commit | fb05b96492f4fb1476106bf735788ac16f69c7ef (patch) | |
| tree | 14ec51f41d29214e550317f283aa8dcdbf223b9d /src/ir_print.cpp | |
| parent | 9ecbabfc4ce857e43db2b056bc83272cb24b0bbd (diff) | |
| parent | 895f262a55b9951647efef4528c17cf64d6b7c07 (diff) | |
| download | zig-fb05b96492f4fb1476106bf735788ac16f69c7ef.tar.gz zig-fb05b96492f4fb1476106bf735788ac16f69c7ef.zip | |
Merge branch 'kristate-handle-builtin-issue1296'
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 127afa94a5..77c7ef47b6 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -791,6 +791,10 @@ static void ir_print_frame_address(IrPrint *irp, IrInstructionFrameAddress *inst fprintf(irp->f, "@frameAddress()"); } +static void ir_print_handle(IrPrint *irp, IrInstructionHandle *instruction) { + fprintf(irp->f, "@handle()"); +} + static void ir_print_return_address(IrPrint *irp, IrInstructionReturnAddress *instruction) { fprintf(irp->f, "@returnAddress()"); } @@ -1556,6 +1560,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdFrameAddress: ir_print_frame_address(irp, (IrInstructionFrameAddress *)instruction); break; + case IrInstructionIdHandle: + ir_print_handle(irp, (IrInstructionHandle *)instruction); + break; case IrInstructionIdAlignOf: ir_print_align_of(irp, (IrInstructionAlignOf *)instruction); break; |
