From 249510a004c84f3af7c084ef4bfbed6f6a584127 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Jul 2021 20:36:22 +1000 Subject: [PATCH] [ORC] Add missing std::move. This should fix the build failure at https://lab.llvm.org/buildbot/#/builders/58/builds/11428. --- llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp index ec91597bc352..301fecb94acb 100644 --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -866,7 +866,7 @@ Expected> Session::Create(Triple TT) { // FIXME: Errors destroy the session, leaving the SymbolStringPtrs dangling, // so just exit here. We could fix this by having errors keep the pool alive. ExitOnErr(std::move(Err)); - return S; + return std::move(S); } Session::~Session() {