[llvm] 8a5f1ef - [ORC] Simplify error return. NFC.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 16:08:50 PST 2025
Author: Lang Hames
Date: 2025-01-22T11:07:36+11:00
New Revision: 8a5f1ef88bd96a8b15937927d9d0cd51324ba6de
URL: https://github.com/llvm/llvm-project/commit/8a5f1ef88bd96a8b15937927d9d0cd51324ba6de
DIFF: https://github.com/llvm/llvm-project/commit/8a5f1ef88bd96a8b15937927d9d0cd51324ba6de.diff
LOG: [ORC] Simplify error return. NFC.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index 76d5c1428ed649..3c0c90b62bc090 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -1058,12 +1058,9 @@ LLJIT::LLJIT(LLJITBuilderState &S, Error &Err)
}
}
- if (S.PrePlatformSetup) {
- if (auto Err2 = S.PrePlatformSetup(*this)) {
- Err = std::move(Err2);
+ if (S.PrePlatformSetup)
+ if ((Err = S.PrePlatformSetup(*this)))
return;
- }
- }
if (!S.SetUpPlatform)
S.SetUpPlatform = setUpGenericLLVMIRPlatform;
More information about the llvm-commits
mailing list