aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2020-03-13 15:21:12 -0700
committerJan Korous <jkorous@apple.com>2020-03-13 15:25:25 -0700
commitb7ce8fa91ed2f01cb15d9f69d9819fc6893305f2 (patch)
tree9789694fbe2d26a0e76e978f30c59a836d6b9a48 /llvm/lib
parentb3998a0edb9ae154a69964a94b5c53decf27f210 (diff)
downloadllvm-b7ce8fa91ed2f01cb15d9f69d9819fc6893305f2.zip
llvm-b7ce8fa91ed2f01cb15d9f69d9819fc6893305f2.tar.gz
llvm-b7ce8fa91ed2f01cb15d9f69d9819fc6893305f2.tar.bz2
[LLJIT] Add std::move() as a workaround for older compilers
Clang 3.8 isn't able to bind the variable to rvalue-ref which breaks the build.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/LLJIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index cfb1bb8..63a5b1f 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -928,7 +928,7 @@ Error LLJITBuilderState::prepareForConstruction() {
ES, std::make_unique<jitlink::InProcessMemoryManager>());
ObjLinkingLayer->addPlugin(std::make_unique<EHFrameRegistrationPlugin>(
jitlink::InProcessEHFrameRegistrar::getInstance()));
- return ObjLinkingLayer;
+ return std::move(ObjLinkingLayer);
};
}
}