[llvm-commits] [llvm] r91423 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Chris Lattner sabre at nondot.org
Mon Dec 14 23:27:58 PST 2009


Author: lattner
Date: Tue Dec 15 01:27:58 2009
New Revision: 91423

URL: http://llvm.org/viewvc/llvm-project?rev=91423&view=rev
Log:
Lang verified that SlotIndex is "pod like" even though it isn't a pod.

Modified:
    llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=91423&r1=91422&r2=91423&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Tue Dec 15 01:27:58 2009
@@ -329,7 +329,6 @@
   };
 
   /// DenseMapInfo specialization for SlotIndex.
-  /// TODO: Not a POD?
   template <>
   struct DenseMapInfo<SlotIndex> {
     static inline SlotIndex getEmptyKey() {
@@ -345,6 +344,9 @@
       return (LHS == RHS);
     }
   };
+  
+  template <> struct isPodLike<SlotIndex> { static const bool value = true; };
+
 
   inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
     li.print(os);





More information about the llvm-commits mailing list