@@ -1267,21 +1267,17 @@ function _include_from_serialized(pkg::PkgId, path::String, ocachepath::Union{No
1267
1267
sv = try
1268
1268
if ocachepath != = nothing
1269
1269
@debug " Loading object cache file $ocachepath for $(repr (" text/plain" , pkg)) "
1270
- ccall (:jl_restore_package_image_from_file , Any , (Cstring, Any, Cint, Cstring, Cint),
1270
+ ccall (:jl_restore_package_image_from_file , Ref{SimpleVector} , (Cstring, Any, Cint, Cstring, Cint),
1271
1271
ocachepath, depmods, #= completeinfo=# false , pkg. name, ignore_native)
1272
1272
else
1273
1273
@debug " Loading cache file $path for $(repr (" text/plain" , pkg)) "
1274
- ccall (:jl_restore_incremental , Any , (Cstring, Any, Cint, Cstring),
1274
+ ccall (:jl_restore_incremental , Ref{SimpleVector} , (Cstring, Any, Cint, Cstring),
1275
1275
path, depmods, #= completeinfo=# false , pkg. name)
1276
1276
end
1277
1277
finally
1278
1278
lock (require_lock)
1279
1279
end
1280
- if isa (sv, Exception)
1281
- return sv
1282
- end
1283
1280
1284
- sv = sv:: SimpleVector
1285
1281
edges = sv[3 ]:: Vector{Any}
1286
1282
ext_edges = sv[4 ]:: Union{Nothing,Vector{Any}}
1287
1283
extext_methods = sv[5 ]:: Vector{Any}
0 commit comments