Remove unnecessary static_casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-07-07 18:08:20 +00:00
parent ccd95b5f9c
commit d24c62c67e

View File

@ -86,7 +86,7 @@ public:
// 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 @@ void SmallVectorImpl<T>::grow(size_t MinSize) {
// 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;