Fix: double declaration in SSA

This commit is contained in:
Ginger Bill
2016-09-27 19:47:27 +01:00
parent f6bbd8a4c2
commit 6088cbeddb
3 changed files with 5 additions and 3 deletions

View File

@@ -116,6 +116,10 @@ void ssa_gen_tree(ssaGen *s) {
DeclInfo *decl = entry->value;
Scope *scope = e->scope;
if (!scope->is_file) {
continue;
}
if (entry_point != NULL) {
auto found = map_get(&min_dep_map, hash_pointer(e));
if (found == NULL) {