aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-11-24 02:44:03 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-11-24 02:44:03 -0500
commit0c22358cc1cccacb9a30929fbbc990ba9d82b6b3 (patch)
tree68f861f84eaa471832ddb978e876d3097de6be8a /src/codegen.cpp
parenta2257e4b81764f8603a39b74eae3622651ec7d6b (diff)
downloadzig-0c22358cc1cccacb9a30929fbbc990ba9d82b6b3.tar.gz
zig-0c22358cc1cccacb9a30929fbbc990ba9d82b6b3.zip
IR: generating a switch statement
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 541bb500eb..f7df4a2bc5 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -1695,6 +1695,8 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable,
case IrInstructionIdCtz:
return ir_render_ctz(g, executable, (IrInstructionCtz *)instruction);
case IrInstructionIdSwitchBr:
+ case IrInstructionIdSwitchTarget:
+ case IrInstructionIdSwitchVar:
case IrInstructionIdPhi:
case IrInstructionIdContainerInitList:
case IrInstructionIdContainerInitFields: