...
This commit is contained in:
@@ -8,11 +8,7 @@ struct Human
|
||||
|
||||
export func main(args: []cstring): i64
|
||||
{
|
||||
let x: cstring
|
||||
|
||||
x = "john"
|
||||
|
||||
c::puts(x)
|
||||
c::puts("john")
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -1297,9 +1297,6 @@ public static class QBEGenerator
|
||||
|
||||
foreach (var parameter in funcCall.Parameters)
|
||||
{
|
||||
var result = EmitUnwrap(EmitExpression(parameter));
|
||||
var copy = EmitCopy(parameter.Type, result);
|
||||
|
||||
var qbeType = parameter.Type switch
|
||||
{
|
||||
NubArrayType => "l",
|
||||
@@ -1326,6 +1323,7 @@ public static class QBEGenerator
|
||||
_ => throw new NotSupportedException($"'{parameter.Type}' type cannot be used in function calls")
|
||||
};
|
||||
|
||||
var copy = EmitCopy(parameter.Type, EmitUnwrap(EmitExpression(parameter)));
|
||||
parameterStrings.Add($"{qbeType} {copy}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user