mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Merge pull request #2633 from whitequark/cxxrtl-no-top
cxxrtl: don't crash on empty designs
This commit is contained in:
		
						commit
						b117f9bba8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2763,7 +2763,7 @@ struct CxxrtlWorker {
 | 
				
			||||||
		// Recheck the design if it was modified.
 | 
							// Recheck the design if it was modified.
 | 
				
			||||||
		if (did_anything)
 | 
							if (did_anything)
 | 
				
			||||||
			check_design(design, has_top, has_sync_init, has_packed_mem);
 | 
								check_design(design, has_top, has_sync_init, has_packed_mem);
 | 
				
			||||||
		log_assert(has_top && !has_sync_init && !has_packed_mem);
 | 
							log_assert(!has_sync_init && !has_packed_mem);
 | 
				
			||||||
		log_pop();
 | 
							log_pop();
 | 
				
			||||||
		if (did_anything)
 | 
							if (did_anything)
 | 
				
			||||||
			log_spacer();
 | 
								log_spacer();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue