IR: implement error for missing or extra switch prongs

This commit is contained in:
Andrew Kelley
2017-01-10 16:28:49 -05:00
parent 430e33b869
commit fde276a3bf
5 changed files with 155 additions and 12 deletions

View File

@@ -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);