TestFuncCall

This commit is contained in:
xushiwei
2024-04-19 00:05:57 +08:00
parent a966e02273
commit c784a2e63b
7 changed files with 188 additions and 58 deletions

View File

@@ -42,11 +42,7 @@ func (b Builder) Return(results ...Expr) Builder {
case 1:
b.impl.CreateRet(results[0].impl)
default:
rets := make([]llvm.Value, n)
for i, v := range results {
rets[i] = v.impl
}
b.impl.CreateAggregateRet(rets)
b.impl.CreateAggregateRet(llvmValues(results))
}
return b
}