aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-10-28 02:32:36 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-10-28 02:32:36 -0400
commit8e2804efa1d23696a476ab3f88c6b9852370cf8b (patch)
treeadd9fdc7bc0fd6b3ba1d0832a30efeaebc6a8451 /src/ir_print.cpp
parent114049a22031be63da511ea53f4e655fc72a4578 (diff)
downloadzig-8e2804efa1d23696a476ab3f88c6b9852370cf8b.tar.gz
zig-8e2804efa1d23696a476ab3f88c6b9852370cf8b.zip
IR: ability to assign to an array at runtime
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 8749214f31..95c968f71d 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -320,6 +320,7 @@ static void ir_print_unreachable(IrPrint *irp, IrInstructionUnreachable *instruc
}
static void ir_print_elem_ptr(IrPrint *irp, IrInstructionElemPtr *instruction) {
+ fprintf(irp->f, "&");
ir_print_other_instruction(irp, instruction->array_ptr);
fprintf(irp->f, "[");
ir_print_other_instruction(irp, instruction->elem_index);