Skip to content

Commit 8a5f1ef

Browse files
committed
[ORC] Simplify error return. NFC.
1 parent ec0958c commit 8a5f1ef

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,12 +1058,9 @@ LLJIT::LLJIT(LLJITBuilderState &S, Error &Err)
10581058
}
10591059
}
10601060

1061-
if (S.PrePlatformSetup) {
1062-
if (auto Err2 = S.PrePlatformSetup(*this)) {
1063-
Err = std::move(Err2);
1061+
if (S.PrePlatformSetup)
1062+
if ((Err = S.PrePlatformSetup(*this)))
10641063
return;
1065-
}
1066-
}
10671064

10681065
if (!S.SetUpPlatform)
10691066
S.SetUpPlatform = setUpGenericLLVMIRPlatform;

0 commit comments

Comments
 (0)