Skip to content

Commit 6edc3fe

Browse files
[Orc] Fix OrcV2Examples after D94690
Differential Revision: https://reviews.llvm.org/D94690
1 parent bab121a commit 6edc3fe

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "llvm/ADT/StringMap.h"
1010
#include "llvm/ExecutionEngine/Orc/DebugUtils.h"
1111
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
12+
#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h"
1213
#include "llvm/Support/InitLLVM.h"
1314
#include "llvm/Support/TargetSelect.h"
1415
#include "llvm/Support/raw_ostream.h"

llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main(int argc, char *argv[]) {
7878
// Make sure the debug info sections aren't stripped.
7979
ObjLinkingLayer->setProcessAllSections(true);
8080

81-
return std::move(ObjLinkingLayer);
81+
return ObjLinkingLayer;
8282
})
8383
.create());
8484

llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
147147
ES, std::make_unique<jitlink::InProcessMemoryManager>());
148148
// Add an instance of our plugin.
149149
ObjLinkingLayer->addPlugin(std::make_unique<MyPlugin>());
150-
return std::move(ObjLinkingLayer);
150+
return ObjLinkingLayer;
151151
})
152152
.create());
153153

0 commit comments

Comments
 (0)