diff --git a/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp b/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp index 9b020ef8c49..2c975b188fb 100644 --- a/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp +++ b/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp @@ -9,6 +9,7 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ExecutionEngine/Orc/DebugUtils.h" #include "llvm/ExecutionEngine/Orc/LLJIT.h" +#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h" #include "llvm/Support/InitLLVM.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" diff --git a/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp b/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp index e37b761913f..78a0c5b197d 100644 --- a/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp +++ b/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) { // Make sure the debug info sections aren't stripped. ObjLinkingLayer->setProcessAllSections(true); - return std::move(ObjLinkingLayer); + return ObjLinkingLayer; }) .create()); diff --git a/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp index 36d28ab1aaa..f349ce900e6 100644 --- a/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp +++ b/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) { ES, std::make_unique()); // Add an instance of our plugin. ObjLinkingLayer->addPlugin(std::make_unique()); - return std::move(ObjLinkingLayer); + return ObjLinkingLayer; }) .create());