aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/codegen.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-07 09:41:38 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-07 09:41:38 +0100
commitc5d20d2eef6c25b23c2aa69cdc1dbc7ce7d6753a (patch)
tree23c6a0a5badbf67634a000df4d856f384fc51176 /src/codegen/codegen.cpp
parentf40482aa29f687b4630744457844bad7f45ec614 (diff)
Demaybe operator ?
Diffstat (limited to 'src/codegen/codegen.cpp')
-rw-r--r--src/codegen/codegen.cpp9
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) {