Don't resume/suspend vars containing pointers.

This commit is contained in:
Nigel Tao committed 2017-09-23 15:16:43 +10:00
1 parent d5c8e20268
commit 10b7d5a031
7 files changed
+78 -38

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ func (g *gen) writeFuncImplHeader(b *buffer) error {
b.writes("\n")
// Generate the local variables.
if err := g.writeVars(b, g.currFunk.astFunc.Body()); err != nil {
if err := g.writeVars(b, g.currFunk.astFunc.Body(), false); err != nil {
return err
}
b.writes("\n")