Skip to content

Commit

Permalink
Remove existence check.
Browse files Browse the repository at this point in the history
This will never be true because 'findModuleByOffset' would have found
the module.
  • Loading branch information
hainest committed Oct 8, 2023
1 parent a6471b9 commit 2d4c085
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions symtabAPI/src/Symtab.C
Expand Up @@ -812,12 +812,6 @@ Module *Symtab::getOrCreateModule(const std::string &modName,

Module *ret = new Module(lang_Unknown, modAddr, modName, this);

if (impl->modules.contains(ret))
{
create_printf("%s[%d]: WARN: LEAK? already have module with name %s\n",
FILE__, __LINE__, ret->fileName().c_str());
}

impl->modules.insert(ret);

return (ret);
Expand Down

0 comments on commit 2d4c085

Please sign in to comment.