mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	simplify: fix single_bit_vector memory leak
This commit is contained in:
		
							parent
							
								
									c21cd300a0
								
							
						
					
					
						commit
						c37b7b3bf4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2087,7 +2087,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin | ||||||
| 					std::swap(range_left, range_right); | 					std::swap(range_left, range_right); | ||||||
| 					range_swapped = force_upto; | 					range_swapped = force_upto; | ||||||
| 				} | 				} | ||||||
| 				if (range_left == range_right) | 				if (range_left == range_right && !attributes.count(ID::single_bit_vector)) | ||||||
| 					set_attribute(ID::single_bit_vector, mkconst_int(1, false)); | 					set_attribute(ID::single_bit_vector, mkconst_int(1, false)); | ||||||
| 			} | 			} | ||||||
| 		} else { | 		} else { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue