[llvm] r308203 - [ORC] Remove extraneous else.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 11:36:35 PDT 2017
Author: lhames
Date: Mon Jul 17 11:36:35 2017
New Revision: 308203
URL: http://llvm.org/viewvc/llvm-project?rev=308203&view=rev
Log:
[ORC] Remove extraneous else.
As suggested by Dave Blaikie in review on r307952. Thanks Dave!
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h?rev=308203&r1=308202&r2=308203&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h Mon Jul 17 11:36:35 2017
@@ -301,8 +301,7 @@ public:
if (auto Err = LMResources->StubsMgr->updatePointer(CalledFnName,
FnBodyAddr))
return Err;
- else
- return Error::success();
+ return Error::success();
}
}
return make_error<JITSymbolNotFound>(FuncName);
More information about the llvm-commits
mailing list