diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-05 18:43:16 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-05 18:43:16 -0500 |
| commit | 24048b2af62f1b36678aa08a20d0754cb712e485 (patch) | |
| tree | 09519ba8509ba40a3c1d9c85eee7d35f181ca37b /src/ir_print.cpp | |
| parent | 0541532ed6cf5a32b57a4a3f74e6d3a1699223a7 (diff) | |
| download | zig-24048b2af62f1b36678aa08a20d0754cb712e485.tar.gz zig-24048b2af62f1b36678aa08a20d0754cb712e485.zip | |
IR: implement break and continue
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 3e8e877f39..7f27ab104b 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -104,7 +104,7 @@ static void ir_print_const_value(IrPrint *irp, TypeTableEntry *type_entry, Const } case TypeTableEntryIdBlock: { - AstNode *node = const_val->data.x_block->node; + AstNode *node = const_val->data.x_block->source_node; fprintf(irp->f, "(scope:%zu:%zu)", node->line + 1, node->column + 1); return; } |
