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

@@ -1,8 +1,5 @@
#import "fmt.odin"
#import "game.odin"
main :: proc() {
fmt.println("Hello")
game.run()
}

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) {

View File

@@ -196,6 +196,7 @@ template <typename T> void multi_map_remove_all(Map<T> *h, HashKey key);
template <typename T>
gb_inline void map_init(Map<T> *h, gbAllocator a) {
gb_array_init(h->hashes, a);