google / ruy

Apache License 2.0
303 stars 83 forks source link

handle null cpuinfo_get_arch #340

Closed davidbienvenu closed 1 year ago

davidbienvenu commented 1 year ago

The Arm64 Windows implementation of cpuinfo returns null from cpuinfo_get_uarch if it doesn't recognize the CPU, instead of a default cpuinfo_uarch_info, as it does for other cpu's. This PR makes ruy not crash when that happens.