Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using
authorTed Kremenek <kremenek@apple.com>
Sat, 19 Jan 2008 04:51:55 +0000 (04:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 19 Jan 2008 04:51:55 +0000 (04:51 +0000)
FoldingSetTrait instead of directly calling a 'Profile' method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46190 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableSet.h

index 7999bb5967218c946cee5a31f19cdd9c1e184844..e77deeb51eb6f3a934975d3e551449d276d8da36 100644 (file)
@@ -717,8 +717,8 @@ struct ImutProfileInfo {
   typedef const T& value_type_ref;
   
   static inline void Profile(FoldingSetNodeID& ID, value_type_ref X) {
-    X.Profile(ID);
-  }  
+    FoldingSetTrait<T>::Profile(X,ID);
+  }
 };
 
 /// Profile traits for integers.