diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-06 01:13:47 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-06 01:18:39 -0700 |
| commit | 34a7e6fdb362cb7be1067b7d1fc110eb2f323c51 (patch) | |
| tree | 7f424a8a2d04f7b76d9a4d5f4dc65948b33d732d /src/analyze.cpp | |
| parent | ec33e5a638b816ab0ba1e4dd3f9433dbb71d7e53 (diff) | |
| download | zig-34a7e6fdb362cb7be1067b7d1fc110eb2f323c51.tar.gz zig-34a7e6fdb362cb7be1067b7d1fc110eb2f323c51.zip | |
codegen: return respects unconditional defer
See #110
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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) { |
