mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
							parent
							
								
									4adcbecec5
								
							
						
					
					
						commit
						4a942ba7b9
					
				
					 6 changed files with 37 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -69,8 +69,7 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
 | 
			
		|||
		did_something = true;
 | 
			
		||||
		for (auto &action : sw->cases[0]->actions)
 | 
			
		||||
			parent->actions.push_back(action);
 | 
			
		||||
		for (auto sw2 : sw->cases[0]->switches)
 | 
			
		||||
			parent->switches.push_back(sw2);
 | 
			
		||||
		parent->switches.insert(parent->switches.begin(), sw->cases[0]->switches.begin(), sw->cases[0]->switches.end());
 | 
			
		||||
		sw->cases[0]->switches.clear();
 | 
			
		||||
		delete sw->cases[0];
 | 
			
		||||
		sw->cases.clear();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue