[dsymutil] Fix std::unique_ptr to llvm::Expected conversion

Fixes error: could not convert from
'std::unique_ptr<llvm::dsymutil::Reproducer>' to
'llvm::Expected<std::unique_ptr<llvm::dsymutil::Reproducer>>'
This commit is contained in:
Jonas Devlieghere 2022-06-14 16:09:39 -07:00
parent 33b6891db2
commit 98fe869373
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D

View File

@ -97,5 +97,5 @@ Reproducer::createReproducer(ReproducerMode Mode, StringRef Root, int Argc,
}
if (EC)
return errorCodeToError(EC);
return Repro;
return {std::move(Repro)};
}