aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>2023-03-29 08:18:36 +0530
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>2023-03-29 08:18:36 +0530
commit766d048d819a78443da73f67afa04e0a108412b6 (patch)
tree366e016b6daa58317328bf22fe8d8b50382cdcfe /clang/lib/Interpreter/Interpreter.cpp
parentd978730d8e2c10c76867b83bec2f1143d895ee7d (diff)
downloadllvm-766d048d819a78443da73f67afa04e0a108412b6.zip
llvm-766d048d819a78443da73f67afa04e0a108412b6.tar.gz
llvm-766d048d819a78443da73f67afa04e0a108412b6.tar.bz2
[clang-repl] Use std::move when converting Error to Expected
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 76d5f16..a0ccbc2 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -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();