IR can inline loops

This commit is contained in:
Andrew Kelley
2016-10-27 01:08:06 -04:00
parent 44d6f8ffd8
commit bfcd6648e7
6 changed files with 211 additions and 89 deletions

View File

@@ -5314,7 +5314,7 @@ static void analyze_fn_body(CodeGen *g, FnTableEntry *fn_table_entry) {
}
TypeTableEntry *block_return_type = ir_analyze(g, &fn_table_entry->ir_executable,
&fn_table_entry->analyzed_executable, expected_type);
&fn_table_entry->analyzed_executable, expected_type, fn_proto->return_type);
node->data.fn_def.implicit_return_type = block_return_type;
if (g->verbose) {