]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/objc-opt.mm
objc4-818.2.tar.gz
[apple/objc4.git] / runtime / objc-opt.mm
index b21869b44cd9bd5ed29caa95064c586b9067ae29..44abbdf529ecccb59b46270ccdba74f88f1b2470 100644 (file)
@@ -515,7 +515,7 @@ void preopt_init(void)
     const uintptr_t start = (uintptr_t)_dyld_get_shared_cache_range(&length);
 
     if (start) {
-        objc::dataSegmentsRanges.add(start, start + length);
+        objc::dataSegmentsRanges.setSharedCacheRange(start, start + length);
     }
     
     // `opt` not set at compile time in order to detect too-early usage