mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	smtr: Use scope.unique_name
This commit is contained in:
		
							parent
							
								
									5a29b3e172
								
							
						
					
					
						commit
						a2abbcb33f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -81,7 +81,7 @@ public:
 | 
			
		|||
	SmtrStruct(std::string name, SmtrScope &scope) : scope(scope), name(name) {}
 | 
			
		||||
	void insert(IdString field_name, SmtrSort sort) {
 | 
			
		||||
		field_names(field_name);
 | 
			
		||||
		auto base_name = RTLIL::unescape_id(field_name);
 | 
			
		||||
		auto base_name = scope.unique_name("\\" + RTLIL::unescape_id(field_name));
 | 
			
		||||
		auto accessor = name + "-" + base_name;
 | 
			
		||||
		scope.reserve(accessor);
 | 
			
		||||
		fields.emplace_back(Field{sort, accessor, base_name});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue