mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Fixed some "used uninitialized" warnings in opt_expr
This commit is contained in:
		
							parent
							
								
									6d4e8673cc
								
							
						
					
					
						commit
						95dae6d416
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1242,7 +1242,8 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
 | 
			
		|||
				width = cell->parameters["\\B_WIDTH"].as_int();
 | 
			
		||||
				const_width = cell->parameters["\\A_WIDTH"].as_int();
 | 
			
		||||
				var_signed = cell->parameters["\\B_SIGNED"].as_bool();
 | 
			
		||||
			}
 | 
			
		||||
			} else
 | 
			
		||||
				log_abort();
 | 
			
		||||
 | 
			
		||||
			// replace a(signed) < 0 with the high bit of a
 | 
			
		||||
			if (sigConst.is_fully_const() && sigConst.is_fully_zero() && var_signed == true)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue