diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-05-14 23:30:31 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-19 15:53:32 -0400 |
| commit | 6672ee9eb39a1cd9a3d6874ac1fb6de347ee2d33 (patch) | |
| tree | c48c52b2697c55b383aca557bbc69cd7e352d16d /src/ir_print.cpp | |
| parent | b660134a18a308a3a4378c98b78b84595da34e7e (diff) | |
| download | zig-6672ee9eb39a1cd9a3d6874ac1fb6de347ee2d33.tar.gz zig-6672ee9eb39a1cd9a3d6874ac1fb6de347ee2d33.zip | |
Fix too eager comptime evaluation of error ptr
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index a922ab1a43..d38b552749 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1941,3 +1941,14 @@ void ir_print(CodeGen *codegen, FILE *f, IrExecutable *executable, int indent_si } } } + +void ir_print_instruction(CodeGen *codegen, FILE *f, IrInstruction *instruction, int indent_size) { + IrPrint ir_print = {}; + IrPrint *irp = &ir_print; + irp->codegen = codegen; + irp->f = f; + irp->indent = indent_size; + irp->indent_size = indent_size; + + ir_print_instruction(irp, instruction); +} |
