mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
IR: consolidate Ref and PrefixOpAddressOf instructions
This commit is contained in:
1 parent
0f047337ac
commit
d245fabb80
4 files changed
+60
-108
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user