Do not forget to return from the function.

This was probably due to non-proprely merged conflict.
This commit is contained in:
Vassil Vassilev 2017-10-21 19:01:43 +02:00 committed by sftnight
parent 3959f528b7
commit 5f3494f950

View File

@ -433,11 +433,11 @@ IncrementalJIT::removeModule(const std::shared_ptr<llvm::Module>& module) {
// this is resolved we can remove this check enabling the assert.
auto IUnload = m_UnloadPoints.find(module.get());
if (IUnload == m_UnloadPoints.end())
return;
return llvm::Error::success();
auto Handle = IUnload->second;
assert(*Handle && "Trying to remove a non existent module!");
m_UnloadPoints.erase(IUnload);
m_LazyEmitLayer.removeModuleSet(Handle);
return m_LazyEmitLayer.removeModule(Handle);
}
}// end namespace cling