[llvm-commits] [llvm] r46719 - /llvm/trunk/include/llvm/ADT/ImmutableMap.h

Ted Kremenek kremenek at apple.com
Mon Feb 4 13:17:05 PST 2008


Author: kremenek
Date: Mon Feb  4 15:17:02 2008
New Revision: 46719

URL: http://llvm.org/viewvc/llvm-project?rev=46719&view=rev
Log:
Modified 'Profile' method of ImmutableMap to use the 'Profile' method
of the contained ImutAVLTree root.

Modified:
    llvm/trunk/include/llvm/ADT/ImmutableMap.h

Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableMap.h?rev=46719&r1=46718&r2=46719&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableMap.h Mon Feb  4 15:17:02 2008
@@ -205,8 +205,8 @@
   
   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 {





More information about the llvm-commits mailing list