[llvm-commits] [llvm] r53181 - /llvm/trunk/include/llvm/ADT/SmallVector.h

Dan Gohman gohman at apple.com
Mon Jul 7 11:08:20 PDT 2008


Author: djg
Date: Mon Jul  7 13:08:20 2008
New Revision: 53181

URL: http://llvm.org/viewvc/llvm-project?rev=53181&view=rev
Log:
Remove unnecessary static_casts.

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

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

==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Mon Jul  7 13:08:20 2008
@@ -86,7 +86,7 @@
 
     // If this wasn't grown from the inline copy, deallocate the old space.
     if (!isSmall())
-      operator delete(static_cast<void*>(Begin));
+      operator delete(Begin);
   }
   
   typedef size_t size_type;
@@ -362,7 +362,7 @@
   
   // If this wasn't grown from the inline copy, deallocate the old space.
   if (!isSmall())
-    operator delete(static_cast<void*>(Begin));
+    operator delete(Begin);
   
   Begin = NewElts;
   End = NewElts+CurSize;





More information about the llvm-commits mailing list