Index: lib/AST/ODRHash.cpp =================================================================== --- lib/AST/ODRHash.cpp +++ lib/AST/ODRHash.cpp @@ -577,7 +577,19 @@ Inherited::Visit(T); } - void VisitType(const Type *T) {} + void VisitType(const Type *T) { + ID.AddInteger(T->getTypeClass()); + } + + void VisitPointerType(const PointerType *T) { + AddQualType(T->getPointeeType()); + VisitType(T); + } + + void VisitReferenceType(const ReferenceType *T) { + AddQualType(T->getPointeeType()); + VisitType(T); + } void VisitAdjustedType(const AdjustedType *T) { AddQualType(T->getOriginalType());