diff options
Diffstat (limited to 'llvm/lib/LTO/LTOModule.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOModule.cpp b/llvm/lib/LTO/LTOModule.cpp index 9e49f0dc007..68a78a95f73 100644 --- a/llvm/lib/LTO/LTOModule.cpp +++ b/llvm/lib/LTO/LTOModule.cpp @@ -151,7 +151,7 @@ LTOModule::createInLocalContext(std::unique_ptr<LLVMContext> Context, makeLTOModule(Buffer, options, *Context, /* ShouldBeLazy */ true); if (Ret) (*Ret)->OwnedContext = std::move(Context); - return std::move(Ret); + return Ret; } static ErrorOr<std::unique_ptr<Module>> |