cgo: generate correct multiple return value function invocations

Fixes #967.

R=rsc
CC=golang-dev
https://golang.org/cl/1855051
This commit is contained in:
Christian Himpel 2010-08-04 17:15:04 -07:00 committed by Russ Cox
parent 3f16c5cee1
commit 6b8ec5c572

View File

@ -419,8 +419,8 @@ func (p *Package) rewriteRef(f *File) {
n.AddError = true
n.Mangle = "_C2func_" + n.Go
f.Name["2"+r.Name.Go] = n
expr = ast.NewIdent(n.Mangle)
}
expr = ast.NewIdent(n.Mangle)
r.Name = n
break
}