aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-09 21:49:40 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-09 21:49:40 -0400
commitb9d1d45dfd0f704bc762732c23aa2844f1d14e8d (patch)
tree5253c503cfe54656910e5fcc5d335a1f58cf00ff /src/ir_print.cpp
parent2e7f53f1f0d8339b8dc90ad7e0bc9963f1ec471c (diff)
downloadzig-b9d1d45dfd0f704bc762732c23aa2844f1d14e8d.tar.gz
zig-b9d1d45dfd0f704bc762732c23aa2844f1d14e8d.zip
fix combining try with errdefer cancel
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 8c90eb02f3..39e781e4f0 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1554,6 +1554,12 @@ static void ir_print_test_cancel_requested(IrPrint *irp, IrInstructionTestCancel
fprintf(irp->f, "@testCancelRequested()");
}
+static void ir_print_spill(IrPrint *irp, IrInstructionSpill *instruction) {
+ fprintf(irp->f, "@spill(");
+ ir_print_other_instruction(irp, instruction->operand);
+ fprintf(irp->f, ")");
+}
+
static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
ir_print_prefix(irp, instruction);
switch (instruction->id) {
@@ -2039,6 +2045,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
case IrInstructionIdTestCancelRequested:
ir_print_test_cancel_requested(irp, (IrInstructionTestCancelRequested *)instruction);
break;
+ case IrInstructionIdSpill:
+ ir_print_spill(irp, (IrInstructionSpill *)instruction);
+ break;
}
fprintf(irp->f, "\n");
}