Files
swift-mirror/test/SILOptimizer/Inputs/global-functionptr-main.swift
Erik Eckstein f45855d2aa IRGen: always ensure that a function has a IRGenModule for emission
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
2021-02-16 22:27:39 +01:00

5 lines
24 B
Swift