Index: include/llvm/ADT/FoldingSet.h =================================================================== --- include/llvm/ADT/FoldingSet.h +++ include/llvm/ADT/FoldingSet.h @@ -794,6 +794,14 @@ ID.AddPointer(X); } }; +template +struct llvm::FoldingSetTrait> { + static inline void Profile(const std::pair &P, + llvm::FoldingSetNodeID &ID) { + ID.Add(P.first); + ID.Add(P.second); + } +}; } // End of namespace llvm. #endif