aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-17 22:00:55 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-17 22:00:55 -0500
commitd245fabb80c83d1f2b845c42658b6f82d3f89b6f (patch)
tree1d8bb1249a20545a4ce86bce3ef21639a81c0989 /src/codegen.cpp
parent0f047337ac0bf65b5f6d92248adc1452047f2622 (diff)
downloadzig-d245fabb80c83d1f2b845c42658b6f82d3f89b6f.tar.gz
zig-d245fabb80c83d1f2b845c42658b6f82d3f89b6f.zip
IR: consolidate Ref and PrefixOpAddressOf instructions
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 88b565866a..7ed799611f 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -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);