diff options
| author | Jimmi HC <jhc@liab.dk> | 2018-05-30 10:30:09 +0200 |
|---|---|---|
| committer | Jimmi HC <jhc@liab.dk> | 2018-05-30 10:30:09 +0200 |
| commit | 2b3af4ef6b79b8fe178656b069f837eff82ae8c3 (patch) | |
| tree | ed74baa113045d386bd21d71259160f0f0d1994f /src/ir.cpp | |
| parent | b0eebfa560b7c05859a535bf46abd8b9cf9306b3 (diff) | |
| download | zig-2b3af4ef6b79b8fe178656b069f837eff82ae8c3.tar.gz zig-2b3af4ef6b79b8fe178656b069f837eff82ae8c3.zip | |
fixed #1009
ir_make_type_info_defs already calls resolve_top_level_decl on all Tld
when building the def array. This means, that there is no reason that
analyze_fn_body is nessesary, as the fn type should have already been
resolved completly. The only thing analyze_fn_body does here, is cause
problems with generic functions.
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 440063d58d..5d182fe9b0 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -15982,10 +15982,6 @@ static void ir_make_type_info_defs(IrAnalyze *ira, ConstExprValue *out_val, Scop FnTableEntry *fn_entry = ((TldFn *)curr_entry->value)->fn_entry; assert(!fn_entry->is_test); - analyze_fn_body(ira->codegen, fn_entry); - if (fn_entry->anal_state == FnAnalStateInvalid) - return; - AstNodeFnProto *fn_node = (AstNodeFnProto *)(fn_entry->proto_node); ConstExprValue *fn_def_val = create_const_vals(1); |
