Skip to content

Commit

Permalink
Tidy up variable declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Oct 8, 2023
1 parent 2e5592a commit 78e4664
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions symtabAPI/src/Symtab.C
Expand Up @@ -807,12 +807,10 @@ Module *Symtab::getOrCreateModule(const std::string &modName,

if (fm) return fm;

Module *ret = NULL;

create_printf("%s[%d]: Module '%s' at location 0x'%zx' not found. Creating new module.\n",
FILE__, __LINE__, modName.c_str());

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

if (impl->modules.contains(ret))
Expand Down

0 comments on commit 78e4664

Please sign in to comment.