Do not forget to return from the function.
This was probably due to non-proprely merged conflict.
This commit is contained in:
parent
3959f528b7
commit
5f3494f950
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user