mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix for segfaulting
This commit is contained in:
		
							parent
							
								
									8118380726
								
							
						
					
					
						commit
						71a7f3fabd
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -118,7 +118,9 @@ struct SplitfanoutWorker | |||
| 			} | ||||
| 			else { | ||||
| 				Wire *new_wire = module->addWire(NEW_ID, GetSize(outsig)); | ||||
| 				SigSpec sig = module->cell(std::get<0>(bit_user))->getPort(std::get<1>(bit_user)); | ||||
| 				Cell *target_cell = module->cell(std::get<0>(bit_user)); | ||||
| 				if (!target_cell) continue; // cell might no longer exist
 | ||||
| 				SigSpec sig = target_cell->getPort(std::get<1>(bit_user)); | ||||
| 				sig.replace(std::get<2>(bit_user), new_wire); | ||||
| 				module->cell(std::get<0>(bit_user))->setPort(std::get<1>(bit_user), sig); | ||||
| 				new_cell->setPort(outport, new_wire); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue