There was an error while loading. Please reload this page.
2 parents c7ffcf1 + 484a825 commit 773e107Copy full SHA for 773e107
1 file changed
Sources/MachOKit/Model/DyldCache/ObjCOptimization/ObjCHeaderOptimizationRO.swift
@@ -204,13 +204,14 @@ extension ObjCHeaderOptimizationROProtocol {
204
public func headerInfo(
205
in cache: DyldCache, for machO: MachOFile
206
) -> HeaderInfo? {
207
- guard machO.headerStartOffsetInCache > 0 else {
+ guard machO.headerStartOffsetInCache > 0,
208
+ let cacheForMachO = machO.cache else {
209
return nil
210
}
211
return headerInfos(in: cache)?
212
.first(
213
where: {
- guard let offset = $0.resolvedMachOHeaderOffset(in: cache) else {
214
+ guard let offset = $0.resolvedMachOHeaderOffset(in: cacheForMachO) else {
215
return false
216
217
return machO.headerStartOffsetInCache == offset
0 commit comments