mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Use emplace() rather than insert().
				
					
				
			This commit is contained in:
		
							parent
							
								
									dfcb936cd5
								
							
						
					
					
						commit
						6294621825
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -213,7 +213,7 @@ struct TechmapWorker
 | 
			
		|||
			if (tpl_w->port_id > 0)
 | 
			
		||||
			{
 | 
			
		||||
				IdString posportname = stringf("$%d", tpl_w->port_id);
 | 
			
		||||
				positional_ports[posportname] = tpl_w->name;
 | 
			
		||||
				positional_ports.emplace(posportname, tpl_w->name);
 | 
			
		||||
 | 
			
		||||
				if (!flatten_mode && tpl_w->get_bool_attribute(ID::techmap_autopurge) &&
 | 
			
		||||
						(!cell->hasPort(tpl_w->name) || !GetSize(cell->getPort(tpl_w->name))) &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue