go-llvm / llgo

LLVM-based compiler for Go
Other
1.25k stars 81 forks source link

Debug info: Do not create files with empty names #212

Closed pcc closed 10 years ago

pcc commented 10 years ago

This works around a bug in cgo which sometimes causes it to use the //line directive with an empty file name.

axw commented 10 years ago

LGTM. Are you aware of what triggers the cgo bug?

pcc commented 10 years ago

I observed it happen for fields of struct type, but beyond that I have no idea.