[llvm] 16729d0 - [Orc] ELFNixPlatform::setupJITDylib - remove dead return. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 14 04:21:06 PDT 2021
Author: Simon Pilgrim
Date: 2021-10-14T12:17:40+01:00
New Revision: 16729d0f62749b2e5e479dfd575f1dd90ff74bbd
URL: https://github.com/llvm/llvm-project/commit/16729d0f62749b2e5e479dfd575f1dd90ff74bbd
DIFF: https://github.com/llvm/llvm-project/commit/16729d0f62749b2e5e479dfd575f1dd90ff74bbd.diff
LOG: [Orc] ELFNixPlatform::setupJITDylib - remove dead return. NFCI.
2 returns, one after the other - reported by coverity
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
index 88d4cf9f58eeb..b17d196f01b63 100644
--- a/llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
@@ -151,7 +151,6 @@ ELFNixPlatform::Create(ExecutionSession &ES,
Error ELFNixPlatform::setupJITDylib(JITDylib &JD) {
return JD.define(
std::make_unique<DSOHandleMaterializationUnit>(*this, DSOHandleSymbol));
- return Error::success();
}
Error ELFNixPlatform::notifyAdding(ResourceTracker &RT,
More information about the llvm-commits
mailing list