IR: implement error for missing or extra switch prongs

This commit is contained in:
Andrew Kelley committed 2017-01-10 16:28:49 -05:00
1 parent 430e33b869
commit fde276a3bf
5 files changed
+155 -12

No files matched your search

+1
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);