diff options
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 9f7cb00379..5ab4a60ddc 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -316,9 +316,13 @@ struct DenseMapLayoutKeyInfo { return LayoutKey((TargetData*)(intptr_t)-1, 0); } static unsigned getHashValue(const LayoutKey &Val) { - return DenseMapKeyInfo<void*>::getHashValue(Val.first) ^ - DenseMapKeyInfo<void*>::getHashValue(Val.second); + return DenseMapInfo<void*>::getHashValue(Val.first) ^ + DenseMapInfo<void*>::getHashValue(Val.second); } + static bool isEqual(const LayoutKey &LHS, const LayoutKey &RHS) { + return LHS == RHS; + } + static bool isPod() { return true; } }; |