[llvm] 98fe869 - [dsymutil] Fix std::unique_ptr to llvm::Expected conversion
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 16:11:02 PDT 2022
Author: Jonas Devlieghere
Date: 2022-06-14T16:10:48-07:00
New Revision: 98fe869373dc316db598424fdadaf2c159b39b7f
URL: https://github.com/llvm/llvm-project/commit/98fe869373dc316db598424fdadaf2c159b39b7f
DIFF: https://github.com/llvm/llvm-project/commit/98fe869373dc316db598424fdadaf2c159b39b7f.diff
LOG: [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>>'
Added:
Modified:
llvm/tools/dsymutil/Reproducer.cpp
Removed:
################################################################################
diff --git a/llvm/tools/dsymutil/Reproducer.cpp b/llvm/tools/dsymutil/Reproducer.cpp
index 7b06078a104b4..2e28859c140dd 100644
--- a/llvm/tools/dsymutil/Reproducer.cpp
+++ b/llvm/tools/dsymutil/Reproducer.cpp
@@ -97,5 +97,5 @@ Reproducer::createReproducer(ReproducerMode Mode, StringRef Root, int Argc,
}
if (EC)
return errorCodeToError(EC);
- return Repro;
+ return {std::move(Repro)};
}
More information about the llvm-commits
mailing list