Skip to content

Commit 5d33f71

Browse files
committed
Fix build: llvm::Error needs to be moved for implicit conversion to Expected.
I don't know why the premerge setup didn't fail on this, but many builbots are broken right now.
1 parent 10edabb commit 5d33f71

File tree

1 file changed

+1
-1
lines changed
  • llvm/include/llvm/ExecutionEngine/Orc

1 file changed

+1
-1
lines changed

Diff for: llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class LLJITBuilderSetters {
490490

491491
if (impl().NotifyCreated)
492492
if (Error Err = impl().NotifyCreated(*J))
493-
return Err;
493+
return std::move(Err);
494494

495495
return std::move(J);
496496
}

0 commit comments

Comments
 (0)