cleanup space generation logic and make it more robust for union constructs
[libfirm] / ir / adt / hashset.c
index e9f3ecd..4631f5f 100644 (file)
@@ -79,7 +79,7 @@
 
 #ifndef Hash
 #define ID_HASH
-#define Hash(self,key)        ((unsigned)(key))
+#define Hash(self,key)        ((unsigned)(((char *)key) - (char *)0))
 #endif /* Hash */
 
 #ifdef DO_REHASH