IR: consolidate Ref and PrefixOpAddressOf instructions

This commit is contained in:
Andrew Kelley
2016-12-17 22:00:55 -05:00
parent 0f047337ac
commit d245fabb80
4 changed files with 60 additions and 108 deletions

View File

@@ -1175,13 +1175,6 @@ static LLVMValueRef ir_render_un_op(CodeGen *g, IrExecutable *executable, IrInst
}
case IrUnOpBinNot:
return LLVMBuildNot(g->builder, expr, "");
case IrUnOpAddressOf:
case IrUnOpConstAddressOf:
zig_panic("TODO address of codegen");
//{
// TypeTableEntry *lvalue_type;
// return gen_lvalue(g, node, expr_node, &lvalue_type);
//}
case IrUnOpDereference:
{
assert(expr_type->id == TypeTableEntryIdPointer);