mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
prefix op maybe and error are for types only
This commit is contained in:
parent
4df1a9b251
commit
cd08c1f3be
@ -1179,6 +1179,8 @@ static LLVMValueRef ir_render_un_op(CodeGen *g, IrExecutable *executable, IrInst
|
||||
|
||||
switch (op_id) {
|
||||
case IrUnOpInvalid:
|
||||
case IrUnOpError:
|
||||
case IrUnOpMaybe:
|
||||
zig_unreachable();
|
||||
case IrUnOpNegation:
|
||||
case IrUnOpNegationWrap:
|
||||
@ -1212,14 +1214,6 @@ static LLVMValueRef ir_render_un_op(CodeGen *g, IrExecutable *executable, IrInst
|
||||
return get_handle_value(g, expr, child_type);
|
||||
}
|
||||
}
|
||||
case IrUnOpError:
|
||||
{
|
||||
zig_panic("TODO codegen PrefixOpError");
|
||||
}
|
||||
case IrUnOpMaybe:
|
||||
{
|
||||
zig_panic("TODO codegen PrefixOpMaybe");
|
||||
}
|
||||
}
|
||||
|
||||
zig_unreachable();
|
||||
|
Loading…
Reference in New Issue
Block a user