mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
IR: implement error for missing or extra switch prongs
This commit is contained in:
1 parent
430e33b869
commit
fde276a3bf
5 files changed
+155
-12
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user