[llvm-commits] [llvm] r53180 - /llvm/trunk/include/llvm/ADT/FoldingSet.h

Dan Gohman gohman at apple.com
Mon Jul 7 11:07:36 PDT 2008


Author: djg
Date: Mon Jul  7 13:07:36 2008
New Revision: 53180

URL: http://llvm.org/viewvc/llvm-project?rev=53180&view=rev
Log:
Remove an unnecessary reinterpret_cast.

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

Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FoldingSet.h?rev=53180&r1=53179&r2=53180&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/FoldingSet.h (original)
+++ llvm/trunk/include/llvm/ADT/FoldingSet.h Mon Jul  7 13:07:36 2008
@@ -348,7 +348,7 @@
   explicit FoldingSetBucketIteratorImpl(void **Bucket);
   
   FoldingSetBucketIteratorImpl(void **Bucket, bool)
-    : Ptr(reinterpret_cast<void*>(Bucket)) {}
+    : Ptr(Bucket) {}
 
   void advance() {
     void *Probe = static_cast<FoldingSetNode*>(Ptr)->getNextInBucket();





More information about the llvm-commits mailing list