diff --git a/compiler/gc.go b/compiler/gc.go index ceb071bf..6aa0b45a 100644 --- a/compiler/gc.go +++ b/compiler/gc.go @@ -41,6 +41,12 @@ func (b *builder) trackExpr(expr ssa.Value, value llvm.Value) { // pointer in there (if there is one). b.trackValue(value) } + case *ssa.BinOp: + switch expr.Op { + case token.ADD: + // String concatenation. + b.trackValue(value) + } } }