- updated hash_pointer_type for based pointers
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 10 Dec 2008 13:09:35 +0000 (13:09 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 10 Dec 2008 13:09:35 +0000 (13:09 +0000)
[r24477]

type_hash.c

index 15325f4..ea88153 100644 (file)
@@ -74,7 +74,7 @@ static unsigned hash_imaginary_type(const imaginary_type_t *type)
 
 static unsigned hash_pointer_type(const pointer_type_t *type)
 {
-       return hash_ptr(type->points_to);
+       return hash_ptr(type->points_to) ^ hash_ptr(type->base_variable);
 }
 
 static unsigned hash_reference_type(const reference_type_t *type)