Skip to content

Commit 7321509

Browse files
committed
Have gather_replace_debug_symbols traverse empty
Traverse over ins with empty debug symbols also just in case. Probably will not occur however
1 parent a769c11 commit 7321509

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/module.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,6 @@ std::set<std::string> gather_replace_debug_symbols(instruction_ref old_ins)
379379
if(starts_with(old_ins->name(), "@"))
380380
return debug_symbols;
381381
const auto& old_ins_debug = old_ins->get_debug_symbols();
382-
if(old_ins_debug.empty())
383-
return debug_symbols;
384382
debug_symbols.insert(old_ins_debug.begin(), old_ins_debug.end());
385383
for(auto input : old_ins->inputs())
386384
{

0 commit comments

Comments
 (0)