{
if(!i->second.referenced)
unused_nodes.insert(i->first);
- clear_assignments(i->second, i->first->interface!="out");
+ clear_assignments(i->second, true);
continue;
}
{
variables.push_back(BlockVariableMap());
TraversingVisitor::visit(iter);
-
- BlockVariableMap &block_variables = variables.back();
- for(BlockVariableMap::iterator i=block_variables.begin(); i!=block_variables.end(); ++i)
- if(!i->second.local && i->second.referenced)
- clear_assignments(i->second, false);
-
merge_down_variables();
}