add variable declaration IR

This commit is contained in:
Andrew Kelley
2016-10-18 03:00:48 -04:00
parent ac6d1674e3
commit 682511d1b2
4 changed files with 305 additions and 2 deletions

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: