Skip to content

Commit d3c99f4

Browse files
authored
Merge pull request #5402 from karkhaz/kk-multiple-functions-possible
Remove multiple function assertion
2 parents 63c32d9 + 599fd66 commit d3c99f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/goto-programs/name_mangler.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ class function_name_manglert
121121

122122
auto inserted = model.goto_functions.function_map.emplace(
123123
pair.second, std::move(found->second));
124-
INVARIANT(
125-
inserted.second,
126-
"The mangled name '" + std::string(pair.second.c_str()) +
127-
"' should not already exist in the codebase");
124+
if(!inserted.second)
125+
log.debug() << "Found a mangled name that already exists: "
126+
<< std::string(pair.second.c_str()) << log.eom;
128127

129128
model.goto_functions.function_map.erase(found);
130129
}

0 commit comments

Comments
 (0)