Inverted argument order for ImmutableMap::Profile.
authorTed Kremenek <kremenek@apple.com>
Wed, 2 Jan 2008 22:18:33 +0000 (22:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 2 Jan 2008 22:18:33 +0000 (22:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45507 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableMap.h

index 6f62960217baf2cb49d9017c83228690377820e3..bf5cc8ffd9de750c8407f33326335aac3c118524 100644 (file)
@@ -188,12 +188,12 @@ public:
   
   inline unsigned getHeight() const { return Root ? Root->getHeight() : 0; }
 
-  static inline void Profile(const ImmutableMap& M, FoldingSetNodeID& ID) { 
+  static inline void Profile(FoldingSetNodeID& ID, const ImmutableMap& M) { 
     ID.AddPointer(M.Root);
   }
   
   inline void Profile(FoldingSetNodeID& ID) const {
-    return Profile(*this,ID);
+    return Profile(ID,*this);
   }  
 };