From fde276a3bf3d20da5346bd302a736101ce440362 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 10 Jan 2017 16:28:49 -0500 Subject: IR: implement error for missing or extra switch prongs --- src/codegen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 5a9066e120..a87a77f33b 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -2274,6 +2274,7 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable, case IrInstructionIdFnProto: case IrInstructionIdTestComptime: case IrInstructionIdGeneratedCode: + case IrInstructionIdCheckSwitchProngs: zig_unreachable(); case IrInstructionIdReturn: return ir_render_return(g, executable, (IrInstructionReturn *)instruction); -- cgit v1.2.3