prefix op maybe and error are for types only

This commit is contained in:
Andrew Kelley 2017-02-02 12:21:11 -05:00
parent 4df1a9b251
commit cd08c1f3be

View File

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