IR: consolidate Ref and PrefixOpAddressOf instructions

This commit is contained in:
Andrew Kelley committed 2016-12-17 22:00:55 -05:00
1 parent 0f047337ac
commit d245fabb80
4 files changed
+60 -108

No files matched your search

-7
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);