File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
llvm/include/llvm/ExecutionEngine/Orc Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class TrampolinePool {
77
77
std::lock_guard<std::mutex> Lock (TPMutex);
78
78
if (AvailableTrampolines.empty ()) {
79
79
if (auto Err = grow ())
80
- return std::move ( Err) ;
80
+ return Err;
81
81
}
82
82
assert (!AvailableTrampolines.empty () && " Failed to grow trampoline pool" );
83
83
auto TrampolineAddr = AvailableTrampolines.back ();
Original file line number Diff line number Diff line change @@ -488,18 +488,18 @@ class LLJITBuilderSetters {
488
488
// / Create an instance of the JIT.
489
489
Expected<std::unique_ptr<JITType>> create () {
490
490
if (auto Err = impl ().prepareForConstruction ())
491
- return std::move ( Err) ;
491
+ return Err;
492
492
493
493
Error Err = Error::success ();
494
494
std::unique_ptr<JITType> J (new JITType (impl (), Err));
495
495
if (Err)
496
- return std::move ( Err) ;
496
+ return Err;
497
497
498
498
if (impl ().NotifyCreated )
499
499
if (Error Err = impl ().NotifyCreated (*J))
500
- return std::move ( Err) ;
500
+ return Err;
501
501
502
- return std::move (J) ;
502
+ return J ;
503
503
}
504
504
505
505
protected:
You can’t perform that action at this time.
0 commit comments