add variable declaration IR

This commit is contained in:
Andrew Kelley committed 2016-10-18 03:00:48 -04:00
1 parent ac6d1674e3
commit 682511d1b2
4 files changed
+305 -2

No files matched your search

+2
View File
@@ -2820,6 +2820,8 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable,
zig_unreachable();
case IrInstructionIdReturn:
return ir_render_return(g, executable, (IrInstructionReturn *)instruction);
case IrInstructionIdDeclVar:
return nullptr;
case IrInstructionIdLoadVar:
return ir_render_load_var(g, executable, (IrInstructionLoadVar *)instruction);
case IrInstructionIdBinOp: