mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -07:00
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:
parent
3f16c5cee1
commit
6b8ec5c572
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user