diff options
Diffstat (limited to 'libgo/go/cmd/cgo/ast.go')
-rw-r--r-- | libgo/go/cmd/cgo/ast.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/cmd/cgo/ast.go b/libgo/go/cmd/cgo/ast.go index 000ecd44685..8ce824196d9 100644 --- a/libgo/go/cmd/cgo/ast.go +++ b/libgo/go/cmd/cgo/ast.go @@ -87,6 +87,7 @@ func (f *File) ReadGo(name string) { if cg != nil { f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), name) f.Preamble += commentText(cg) + "\n" + f.Preamble += "#line 1 \"cgo-generated-wrapper\"\n" } } } @@ -296,7 +297,7 @@ func (f *File) walk(x interface{}, context string, visit func(*File, interface{} // everything else just recurs default: - error_(token.NoPos, "unexpected type %T in walk", x, visit) + error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") case nil: |