Commit 044ebae2 authored by Russ Cox's avatar Russ Cox

cgo: include line number information to keep go/printer happy

Fixes #443.

R=dho
CC=golang-dev
https://golang.org/cl/179095
parent d85bb818
......@@ -94,7 +94,8 @@ func main() {
case "call":
if !cref.TypeName {
// Is an actual function call.
*cref.Expr = &ast.Ident{Value: "_C_" + cref.Name}
pos := (*cref.Expr).Pos()
*cref.Expr = &ast.Ident{Position: pos, Value: "_C_" + cref.Name}
p.Funcdef[cref.Name] = cref.FuncType
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