diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-07 09:41:38 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-07 09:41:38 +0100 |
| commit | c5d20d2eef6c25b23c2aa69cdc1dbc7ce7d6753a (patch) | |
| tree | 23c6a0a5badbf67634a000df4d856f384fc51176 /src/codegen/codegen.cpp | |
| parent | f40482aa29f687b4630744457844bad7f45ec614 (diff) | |
Demaybe operator ?
Diffstat (limited to 'src/codegen/codegen.cpp')
| -rw-r--r-- | src/codegen/codegen.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index a843da551..cf9e561b1 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -121,12 +121,9 @@ void ssa_gen_tree(ssaGen *s) { continue; } - if (entry_point != NULL) { - auto found = map_get(&min_dep_map, hash_pointer(e)); - if (found == NULL) { - // NOTE(bill): Nothing depends upon it so doesn't need to be built - continue; - } + if (map_get(&min_dep_map, hash_pointer(e)) == NULL) { + // NOTE(bill): Nothing depends upon it so doesn't need to be built + continue; } if (!scope->is_global && !scope->is_init) { |