mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-26 09:24:37 +00:00 
			
		
		
		
	Make IdString hashing take a reference to the IdString instead of copying it
This commit is contained in:
		
							parent
							
								
									05d32149b7
								
							
						
					
					
						commit
						95c31817dd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -430,10 +430,10 @@ namespace hashlib { | |||
| 		static inline bool cmp(const RTLIL::IdString &a, const RTLIL::IdString &b) { | ||||
| 			return a == b; | ||||
| 		} | ||||
| 		[[nodiscard]] static inline Hasher hash(const RTLIL::IdString id) { | ||||
| 		[[nodiscard]] static inline Hasher hash(const RTLIL::IdString &id) { | ||||
| 			return id.hash_top(); | ||||
| 		} | ||||
| 		[[nodiscard]] static inline Hasher hash_into(const RTLIL::IdString id, Hasher h) { | ||||
| 		[[nodiscard]] static inline Hasher hash_into(const RTLIL::IdString &id, Hasher h) { | ||||
| 			return id.hash_into(h); | ||||
| 		} | ||||
| 	}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue