aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-18 13:20:19 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-18 13:20:19 -0500
commitb59841a80f564c63c667f6142832407086b67b56 (patch)
tree6deba3561e0eee83dea2eca702de94df0dfdb04f /src/ir_print.cpp
parent0cdfd5c1411a3e6af1ba7d579ef8bb5e752cbc2d (diff)
downloadzig-b59841a80f564c63c667f6142832407086b67b56.tar.gz
zig-b59841a80f564c63c667f6142832407086b67b56.zip
IR: fix err variable in ErrOkOr instruction
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 80ef00d7be..298f72a202 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -849,12 +849,6 @@ static void ir_print_test_err(IrPrint *irp, IrInstructionTestErr *instruction) {
fprintf(irp->f, ")");
}
-static void ir_print_err_union_type_child(IrPrint *irp, IrInstructionErrUnionTypeChild *instruction) {
- fprintf(irp->f, "@errorUnionTypeChild(");
- ir_print_other_instruction(irp, instruction->type_value);
- fprintf(irp->f, ")");
-}
-
static void ir_print_unwrap_err_code(IrPrint *irp, IrInstructionUnwrapErrCode *instruction) {
fprintf(irp->f, "@unwrapErrorCode(");
ir_print_other_instruction(irp, instruction->value);
@@ -1109,9 +1103,6 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
case IrInstructionIdUnwrapErrPayload:
ir_print_unwrap_err_payload(irp, (IrInstructionUnwrapErrPayload *)instruction);
break;
- case IrInstructionIdErrUnionTypeChild:
- ir_print_err_union_type_child(irp, (IrInstructionErrUnionTypeChild *)instruction);
- break;
case IrInstructionIdMaybeWrap:
ir_print_maybe_wrap(irp, (IrInstructionMaybeWrap *)instruction);
break;