diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-27 19:47:27 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-27 19:47:27 +0100 |
| commit | 6088cbeddb84e25e5966a1876ad4ffcaad6676c9 (patch) | |
| tree | 33b09a30bd9922a39195d96df44cb0ce8457b17d /src/codegen/codegen.cpp | |
| parent | f6bbd8a4c2206189c8c77f51b38a421d43d66e76 (diff) | |
Fix: double declaration in SSA
Diffstat (limited to 'src/codegen/codegen.cpp')
| -rw-r--r-- | src/codegen/codegen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index c2aa43d3c..ffe6854a7 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -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) { |