mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-27 01:39:23 +00:00 
			
		
		
		
	select.cc: Fix %i when rhs is empty
This commit is contained in:
		
							parent
							
								
									2dec493054
								
							
						
					
					
						commit
						38293d3bdf
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -431,9 +431,17 @@ static void select_op_intersect(RTLIL::Design *design, RTLIL::Selection &lhs, co | |||
| 	if (rhs.full_selection && !lhs.selects_boxes) | ||||
| 		return; | ||||
| 
 | ||||
| 	if (lhs.empty() || rhs.empty()) | ||||
| 	if (lhs.empty()) | ||||
| 		return; | ||||
| 
 | ||||
| 	if (rhs.empty()) { | ||||
| 		lhs.full_selection = false; | ||||
| 		lhs.complete_selection = false; | ||||
| 		lhs.selected_modules.clear(); | ||||
| 		lhs.selected_members.clear(); | ||||
| 		return; | ||||
| 	} | ||||
| 
 | ||||
| 	select_all(design, lhs); | ||||
| 
 | ||||
| 	std::vector<RTLIL::IdString> del_list; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue