Skip to content

Commit

Permalink
[clang-repl] Use std::move when converting Error to Expected
Browse files Browse the repository at this point in the history
  • Loading branch information
argentite committed Mar 29, 2023
1 parent d978730 commit 766d048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Interpreter/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const CompilerInstance *Interpreter::getCompilerInstance() const {
llvm::Expected<llvm::orc::LLJIT &> Interpreter::getExecutionEngine() {
if (!IncrExecutor) {
if (auto Err = CreateExecutor())
return Err;
return std::move(Err);
}

return IncrExecutor->GetExecutionEngine();
Expand Down

0 comments on commit 766d048

Please sign in to comment.