forked from OSchip/llvm-project
[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:
parent
33b6891db2
commit
98fe869373
|
@ -97,5 +97,5 @@ Reproducer::createReproducer(ReproducerMode Mode, StringRef Root, int Argc,
|
|||
}
|
||||
if (EC)
|
||||
return errorCodeToError(EC);
|
||||
return Repro;
|
||||
return {std::move(Repro)};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue