mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fix memory corruption bug in opt_rmdff
This commit is contained in:
		
							parent
							
								
									1e502ef5a0
								
							
						
					
					
						commit
						c238f45ecf
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -430,6 +430,8 @@ struct OptRmdffPass : public Pass {
 | 
			
		|||
 | 
			
		||||
			assign_map.set(module);
 | 
			
		||||
			dff_init_map.set(module);
 | 
			
		||||
			mux_drivers.clear();
 | 
			
		||||
			init_attributes.clear();
 | 
			
		||||
 | 
			
		||||
			for (auto wire : module->wires())
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			@ -534,6 +536,7 @@ struct OptRmdffPass : public Pass {
 | 
			
		|||
 | 
			
		||||
		assign_map.clear();
 | 
			
		||||
		mux_drivers.clear();
 | 
			
		||||
		init_attributes.clear();
 | 
			
		||||
 | 
			
		||||
		if (total_count || total_initdrv)
 | 
			
		||||
			design->scratchpad_set_bool("opt.did_something", true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue