aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/ImmutableMap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h
index 6f62960217..bf5cc8ffd9 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);
}
};