mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	simplify: Avoid calling fixup_hierarchy_flags on nullptr
Compiling on GCC hid this bug as it optimized the nullptr call away as undefined behavior, but running the SBY tests with a clang build hits this error.
This commit is contained in:
		
							parent
							
								
									20024900d9
								
							
						
					
					
						commit
						cc843d414f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3042,8 +3042,8 @@ skip_dynamic_range_lvalue_expansion:;
 | 
			
		|||
			assign_check = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), new AstNode(AST_REDUCE_BOOL, children[0]->clone()));
 | 
			
		||||
			assign_check->children[0]->str = id_check;
 | 
			
		||||
			assign_check->children[0]->was_checked = true;
 | 
			
		||||
			assign_check->fixup_hierarchy_flags();
 | 
			
		||||
		}
 | 
			
		||||
		assign_check->fixup_hierarchy_flags();
 | 
			
		||||
 | 
			
		||||
		if (current_always == nullptr || current_always->type != AST_INITIAL) {
 | 
			
		||||
			assign_en = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), mkconst_int(1, false, 1));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue