Commit 6b8ec5c5 authored by Christian Himpel's avatar Christian Himpel Committed by Russ Cox

cgo: generate correct multiple return value function invocations

Fixes #967.

R=rsc
CC=golang-dev
https://golang.org/cl/1855051
parent 3f16c5ce
...@@ -419,8 +419,8 @@ func (p *Package) rewriteRef(f *File) { ...@@ -419,8 +419,8 @@ func (p *Package) rewriteRef(f *File) {
n.AddError = true n.AddError = true
n.Mangle = "_C2func_" + n.Go n.Mangle = "_C2func_" + n.Go
f.Name["2"+r.Name.Go] = n f.Name["2"+r.Name.Go] = n
expr = ast.NewIdent(n.Mangle)
} }
expr = ast.NewIdent(n.Mangle)
r.Name = n r.Name = n
break break
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment