From b7ce8fa91ed2f01cb15d9f69d9819fc6893305f2 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 13 Mar 2020 15:21:12 -0700 Subject: [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. --- llvm/lib/ExecutionEngine/Orc/LLJIT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine/Orc') 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()); ObjLinkingLayer->addPlugin(std::make_unique( jitlink::InProcessEHFrameRegistrar::getInstance())); - return ObjLinkingLayer; + return std::move(ObjLinkingLayer); }; } } -- cgit v1.1