Loading...
src/ImageLoader.cpp dyld-551.4 dyld-421.2
--- dyld/dyld-551.4/src/ImageLoader.cpp
+++ dyld/dyld-421.2/src/ImageLoader.cpp
@@ -618,12 +618,14 @@
 			bool depLibRequired = false;
 			bool depLibCheckSumsMatch = false;
 			DependentLibraryInfo& requiredLibInfo = libraryInfos[i];
+#if DYLD_SHARED_CACHE_SUPPORT
 			if ( preflightOnly && context.inSharedCache(requiredLibInfo.name) ) {
 				// <rdar://problem/5910137> dlopen_preflight() on image in shared cache leaves it loaded but not objc initialized
 				// in preflight mode, don't even load dylib that are in the shared cache because they will never be unloaded
 				setLibImage(i, NULL, false, false);
 				continue;
 			}
+#endif
 			try {
 				unsigned cacheIndex;
 				dependentLib = context.loadLibrary(requiredLibInfo.name, true, this->getPath(), &thisRPaths, cacheIndex);
@@ -1315,7 +1317,7 @@
 			bit += 7;
 		}
 	} while (*p++ & 0x80);
-	return (uintptr_t)result;
+	return result;
 }
 
 
@@ -1334,7 +1336,7 @@
 	// sign extend negative numbers
 	if ( (byte & 0x40) != 0 )
 		result |= (-1LL) << bit;
-	return (intptr_t)result;
+	return result;
 }