zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit cd08c1f3be278366ee69c3cf4ab1091eb884e264 (tree)
parent 4df1a9b251926ca05c4f65ed3daf2756c67e82de
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Thu,  2 Feb 2017 12:21:11 -0500

prefix op maybe and error are for types only

Diffstat:
Msrc/codegen.cpp | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/codegen.cpp b/src/codegen.cpp @@ -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();