mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Fixed anonymous genblock object names
This commit is contained in:
		
							parent
							
								
									3db2ac4e00
								
							
						
					
					
						commit
						2874914bcb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2660,7 +2660,7 @@ void AstNode::expand_genblock(std::string index_var, std::string prefix, std::ma | ||||||
| 			std::string new_name = prefix[0] == '\\' ? prefix.substr(1) : prefix; | 			std::string new_name = prefix[0] == '\\' ? prefix.substr(1) : prefix; | ||||||
| 			size_t pos = child->str.rfind('.'); | 			size_t pos = child->str.rfind('.'); | ||||||
| 			if (pos == std::string::npos) | 			if (pos == std::string::npos) | ||||||
| 				pos = child->str[0] == '\\' ? 1 : 0; | 				pos = child->str[0] == '\\' && prefix[0] == '\\' ? 1 : 0; | ||||||
| 			else | 			else | ||||||
| 				pos = pos + 1; | 				pos = pos + 1; | ||||||
| 			new_name = child->str.substr(0, pos) + new_name + child->str.substr(pos); | 			new_name = child->str.substr(0, pos) + new_name + child->str.substr(pos); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue