Fix string type lvalue return type

This commit is contained in:
Sofia 2026-04-15 15:59:12 +03:00
parent eacbac9205
commit aa698c7ed6

View File

@ -49,7 +49,9 @@ namespace AST {
if (scope.is_lvalue) { if (scope.is_lvalue) {
return codegen::StackValue{ return codegen::StackValue{
global_str, global_str,
std::unique_ptr<types::Type>{stack_type}, std::unique_ptr<types::Type>{
new types::PointerType { std::shared_ptr<types::Type> {stack_type } }
},
}; };
} }
else { else {