Lang verified that SlotIndex is "pod like" even though it isn't a pod.
authorChris Lattner <sabre@nondot.org>
Tue, 15 Dec 2009 07:27:58 +0000 (07:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Dec 2009 07:27:58 +0000 (07:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91423 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SlotIndexes.h

index 0cc00070e324e3a28cb6d78787ec319973488172..9a85ee1fbf2c1e61c3f1eb3a7ed801d1ddc61fe1 100644 (file)
@@ -329,7 +329,6 @@ namespace llvm {
   };
 
   /// DenseMapInfo specialization for SlotIndex.
-  /// TODO: Not a POD?
   template <>
   struct DenseMapInfo<SlotIndex> {
     static inline SlotIndex getEmptyKey() {
@@ -345,6 +344,9 @@ namespace llvm {
       return (LHS == RHS);
     }
   };
+  
+  template <> struct isPodLike<SlotIndex> { static const bool value = true; };
+
 
   inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
     li.print(os);