ssa: fix binop string cat ret type

This commit is contained in:
visualfc
2024-05-14 15:58:33 +08:00
parent 238f9593f9
commit 924715fe34
3 changed files with 24 additions and 9 deletions

View File

@@ -284,7 +284,7 @@ func (b Builder) BinOp(op token.Token, x, y Expr) Expr {
case vkString:
if op == token.ADD {
pkg := b.Func.Pkg
return b.InlineCall(pkg.rtFunc("StringCat"), x, y)
return Expr{b.InlineCall(pkg.rtFunc("StringCat"), x, y).impl, x.Type}
}
case vkComplex:
default: