genbindings/main: fix an issue with clang crashing leaving behind an invalid cache file

This commit is contained in:
mappu 2024-10-16 18:05:38 +13:00
parent 2434084238
commit 61107aa1f2

View File

@ -134,6 +134,10 @@ func main() {
panic(err)
}
if astInner == nil {
panic("Null in cache file for " + inputHeader)
}
// Convert it to our intermediate format
parsed, err := parseHeader(astInner, "")
if err != nil {