-fdump-go-spec: don't crash if DECL_ORIGINAL_TYPE is NULL
authorIan Lance Taylor <iant@golang.org>
Tue, 22 Dec 2020 00:21:24 +0000 (16:21 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Dec 2020 00:21:58 +0000 (16:21 -0800)
commit30b76d90596178c3a71910104326c12a4a2ac25f
tree46234d9db1d7c9809592a510fc4253de74547d5f
parent03ea48ff27fd40b04b148f7006a02513a887ad0d
-fdump-go-spec: don't crash if DECL_ORIGINAL_TYPE is NULL

* godump.c (go_output_typedef): If DECL_ORIGINAL_TYPE is NULL, use
TREE_TYPE.
gcc/godump.c