diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-08-19 01:38:06 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-08-19 01:38:06 +0200 |
| commit | c92ac6011f40ff7163dd548d68f5be36f99f85cf (patch) | |
| tree | b3c664ced5abd8f49654308a18b1f542282b3c59 /src | |
| parent | 3cf8c4ab9cb005791b2c61fa94b77c24adee383c (diff) | |
Forgot to clone names in indexing
Diffstat (limited to 'src')
| -rw-r--r-- | src/index/collector.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index/collector.odin b/src/index/collector.odin index fd1d6b7..b2cc37b 100644 --- a/src/index/collector.odin +++ b/src/index/collector.odin @@ -143,7 +143,7 @@ collect_enum_fields :: proc(collection: ^SymbolCollection, fields: []^ast.Expr, value := SymbolEnumValue { names = names[:], - enum_name = ident, + enum_name = strings.clone(ident, collection.allocator), }; return value; @@ -174,7 +174,7 @@ collect_union_fields :: proc(collection: ^SymbolCollection, union_type: ast.Unio value := SymbolUnionValue { names = names[:], types = types[:], - union_name = ident, + union_name = strings.clone(ident, collection.allocator), }; return value; @@ -187,7 +187,7 @@ collect_bitset_field :: proc(collection: ^SymbolCollection, bitset_type: ast.Bit return SymbolBitSetValue { expr = cloned, - bitset_name = ident, + bitset_name = strings.clone(ident, collection.allocator), }; } |