Fix string type lvalue return type
This commit is contained in:
parent
eacbac9205
commit
aa698c7ed6
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user