File tree 1 file changed +3
-3
lines changed
llvm/lib/ExecutionEngine/Orc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,10 +273,10 @@ Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>>
273
273
StaticLibraryDefinitionGenerator::Load (
274
274
ObjectLayer &L, const char *FileName,
275
275
GetObjectFileInterface GetObjFileInterface) {
276
- auto ArchiveBuffer = errorOrToExpected ( MemoryBuffer::getFile (FileName) );
276
+ auto ArchiveBuffer = MemoryBuffer::getFile (FileName);
277
277
278
278
if (!ArchiveBuffer)
279
- return ArchiveBuffer.takeError ( );
279
+ return createFileError (FileName, ArchiveBuffer.getError () );
280
280
281
281
return Create (L, std::move (*ArchiveBuffer), std::move (GetObjFileInterface));
282
282
}
@@ -288,7 +288,7 @@ StaticLibraryDefinitionGenerator::Load(
288
288
289
289
auto B = object::createBinary (FileName);
290
290
if (!B)
291
- return B.takeError ();
291
+ return createFileError (FileName, B.takeError () );
292
292
293
293
// If this is a regular archive then create an instance from it.
294
294
if (isa<object::Archive>(B->getBinary ()))
You can’t perform that action at this time.
0 commit comments