mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Fix: double declaration in SSA
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#import "fmt.odin"
|
||||
#import "game.odin"
|
||||
|
||||
main :: proc() {
|
||||
fmt.println("Hello")
|
||||
game.run()
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user