mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In case a function is only referenced from a global without a declaration (e.g. an outlined global), we could end up with a null IRGenModule for the function (with multithreaded compilation). In this case, just use the primary IGM. This fixes a IRGen crash, introduced with https://github.com/apple/swift/pull/35780 rdar://74358251
5 lines
24 B
Swift
5 lines
24 B
Swift
import Test
|
|
|
|
testit(0)
|
|
|