Modified 'Profile' method of ImmutableMap to use the 'Profile' method
authorTed Kremenek <kremenek@apple.com>
Mon, 4 Feb 2008 21:17:02 +0000 (21:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 Feb 2008 21:17:02 +0000 (21:17 +0000)
of the contained ImutAVLTree root.

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

include/llvm/ADT/ImmutableMap.h

index de1c5875a32e6f59bde7042c97d6a998a696c125..8fbf63a4f21a9cb9c5dcb9f5025ce46a8f4035e6 100644 (file)
@@ -205,8 +205,8 @@ public:
   
   inline unsigned getHeight() const { return Root ? Root->getHeight() : 0; }
 
-  static inline void Profile(FoldingSetNodeID& ID, const ImmutableMap& M) { 
-    ID.AddPointer(M.Root);
+  static inline void Profile(FoldingSetNodeID& ID, const ImmutableMap& M) {
+    M.Root->Profile(ID);
   }
   
   inline void Profile(FoldingSetNodeID& ID) const {