From 34a7e6fdb362cb7be1067b7d1fc110eb2f323c51 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 6 Feb 2016 01:13:47 -0700 Subject: codegen: return respects unconditional defer See #110 --- src/analyze.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 1bf0ca06ec..03e5ad1899 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4545,9 +4545,6 @@ static TypeTableEntry *analyze_return_expr(CodeGen *g, ImportTableEntry *import, normalize_parent_ptrs(node); } - // TODO follow the blocks to their parents, loop over all of them, set them all to true - context->block_exit_paths[BlockExitPathReturn] = true; - TypeTableEntry *expected_return_type = get_return_type(context); switch (node->data.return_expr.kind) { -- cgit v1.2.3