Skip to content

Commit cea8672

Browse files
committed
don't use string as MemoryRegion
1 parent d479c70 commit cea8672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mlir/symbols.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub const SymbolTable = struct {
160160
scope_idx -= 1;
161161
}
162162
// If symbol not found, add it to current scope
163-
try self.addSymbol(name, c.mlirValueGetType(value), "stack", null);
163+
try self.addSymbol(name, c.mlirValueGetType(value), lib.ast.Statements.MemoryRegion.Stack, null);
164164
if (self.scopes.items[self.current_scope].get(name)) |*symbol| {
165165
symbol.value = value;
166166
try self.scopes.items[self.current_scope].put(name, symbol.*);

0 commit comments

Comments
 (0)