diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h index 6f62960217b..bf5cc8ffd9d 100644 --- a/include/llvm/ADT/ImmutableMap.h +++ b/include/llvm/ADT/ImmutableMap.h @@ -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); } };