Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not forget to return from the function.
This was probably due to non-proprely merged conflict.
  • Loading branch information
vgvassilev committed Oct 21, 2017
commit a0d2dba4e09de950fa2e0ba34f26794055c6dce6
4 changes: 2 additions & 2 deletions interpreter/cling/lib/Interpreter/IncrementalJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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