Remove an unnecessary reinterpret_cast.
authorDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 18:07:36 +0000 (18:07 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 18:07:36 +0000 (18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53180 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/FoldingSet.h

index 7629301066e39bc894bac0ba7eae0726f078e8d1..f34a62d4f4c6be1076dc3752d13402212105aa36 100644 (file)
@@ -348,7 +348,7 @@ protected:
   explicit FoldingSetBucketIteratorImpl(void **Bucket);
   
   FoldingSetBucketIteratorImpl(void **Bucket, bool)
-    : Ptr(reinterpret_cast<void*>(Bucket)) {}
+    : Ptr(Bucket) {}
 
   void advance() {
     void *Probe = static_cast<FoldingSetNode*>(Ptr)->getNextInBucket();