diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-10 16:28:49 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-10 16:28:49 -0500 |
| commit | fde276a3bf3d20da5346bd302a736101ce440362 (patch) | |
| tree | de395f7e8e8624c99a4af3eea160437b89d4b3ee /src/codegen.cpp | |
| parent | 430e33b869b004ca24faee2dfa9e51aa4e94093f (diff) | |
| download | zig-fde276a3bf3d20da5346bd302a736101ce440362.tar.gz zig-fde276a3bf3d20da5346bd302a736101ce440362.zip | |
IR: implement error for missing or extra switch prongs
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
