[llvm-commits] [llvm] r130364 - /llvm/trunk/include/llvm/ADT/DenseMap.h

Chris Lattner sabre at nondot.org
Wed Apr 27 17:55:53 PDT 2011


Author: lattner
Date: Wed Apr 27 19:55:53 2011
New Revision: 130364

URL: http://llvm.org/viewvc/llvm-project?rev=130364&view=rev
Log:
silence some -Wnon-pod-memset warnings, since std::pair is not POD.

Modified:
    llvm/trunk/include/llvm/ADT/DenseMap.h

Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=130364&r1=130363&r2=130364&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Wed Apr 27 19:55:53 2011
@@ -73,7 +73,7 @@
     }
 #ifndef NDEBUG
     if (NumBuckets)
-      memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
+      memset((void*)Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
 #endif
     operator delete(Buckets);
   }
@@ -426,7 +426,7 @@
 
 #ifndef NDEBUG
     if (OldNumBuckets)
-      memset(OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
+      memset((void*)OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
 #endif
     // Free the old table.
     operator delete(OldBuckets);





More information about the llvm-commits mailing list