mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	design: do not delete when iterating over Design::modules() directly
This commit is contained in:
		
							parent
							
								
									635b2b8939
								
							
						
					
					
						commit
						75bb2c8c24
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -340,7 +340,7 @@ struct DesignPass : public Pass {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (reset_mode || !load_name.empty() || push_mode || pop_mode)
 | 
							if (reset_mode || !load_name.empty() || push_mode || pop_mode)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			for (auto mod : design->modules())
 | 
								for (auto mod : design->modules().to_vector())
 | 
				
			||||||
				design->remove(mod);
 | 
									design->remove(mod);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			design->selection_stack.clear();
 | 
								design->selection_stack.clear();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue