mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue