]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: unwrap typedef-chains before type checking
authorHiroshi Ioka <hirochachacha@gmail.com>
Sun, 4 Jun 2017 03:11:19 +0000 (12:11 +0900)
committerIan Lance Taylor <iant@golang.org>
Tue, 27 Jun 2017 23:02:34 +0000 (23:02 +0000)
commit289a8719ce4a84cec0ed4e47037da0e82d67dcb8
tree7ecb77e278c2b2edf65474f2a605f0cd68aee24d
parente25fdb968c4ff93c6d41574f2220a11ee02b0914
cmd/cgo: unwrap typedef-chains before type checking

clang can emit some dwarf.VoidType which are wrapped by multiple
dwarf.TypedefType. We need to unwrap those before further processing.

Fixes #20129

Change-Id: I671ce6aef2dc7b55f1a02aec5f9789ac1b369643
Reviewed-on: https://go-review.googlesource.com/44772
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/test/cgo_test.go
misc/cgo/test/issue20129.go [new file with mode: 0644]
src/cmd/cgo/gcc.go