diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-04 23:21:33 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-04 23:21:33 -0500 |
| commit | c32a060d4fd432002d32ff17a4cf9ae491cddfc0 (patch) | |
| tree | e7754a644be63c3922d68b1bc67b6c2e5cf424d9 /src/ir.hpp | |
| parent | 664b41af65d3c9bbc8e09ffcaa91d404fe87d7a0 (diff) | |
| download | zig-c32a060d4fd432002d32ff17a4cf9ae491cddfc0.tar.gz zig-c32a060d4fd432002d32ff17a4cf9ae491cddfc0.zip | |
IR: add unreachable code compiler error
Diffstat (limited to 'src/ir.hpp')
| -rw-r--r-- | src/ir.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.hpp b/src/ir.hpp index b2044d0688..b00ccd8130 100644 --- a/src/ir.hpp +++ b/src/ir.hpp @@ -10,8 +10,8 @@ #include "all_types.hpp" -IrInstruction *ir_gen(CodeGen *g, AstNode *node, Scope *scope, IrExecutable *ir_executable); -IrInstruction *ir_gen_fn(CodeGen *g, FnTableEntry *fn_entry); +bool ir_gen(CodeGen *g, AstNode *node, Scope *scope, IrExecutable *ir_executable); +bool ir_gen_fn(CodeGen *g, FnTableEntry *fn_entry); IrInstruction *ir_eval_const_value(CodeGen *codegen, Scope *scope, AstNode *node, TypeTableEntry *expected_type, size_t *backward_branch_count, size_t backward_branch_quota, |
