forked from OSchip/llvm-project
Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using
FoldingSetTrait instead of directly calling a 'Profile' method. llvm-svn: 46190
This commit is contained in:
parent
4875d2d997
commit
bb80c7b800
|
@ -717,8 +717,8 @@ struct ImutProfileInfo {
|
|||
typedef const T& value_type_ref;
|
||||
|
||||
static inline void Profile(FoldingSetNodeID& ID, value_type_ref X) {
|
||||
X.Profile(ID);
|
||||
}
|
||||
FoldingSetTrait<T>::Profile(X,ID);
|
||||
}
|
||||
};
|
||||
|
||||
/// Profile traits for integers.
|
||||
|
|
Loading…
Reference in New Issue