From: Dan Gohman Date: Mon, 7 Jul 2008 18:08:20 +0000 (+0000) Subject: Remove unnecessary static_casts. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d24c62c67e674a856af25a93846619b4f0d3e234;p=oota-llvm.git Remove unnecessary static_casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53181 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 6faa3cc0ca2..d98d40a3f39 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -86,7 +86,7 @@ public: // If this wasn't grown from the inline copy, deallocate the old space. if (!isSmall()) - operator delete(static_cast(Begin)); + operator delete(Begin); } typedef size_t size_type; @@ -362,7 +362,7 @@ void SmallVectorImpl::grow(size_t MinSize) { // If this wasn't grown from the inline copy, deallocate the old space. if (!isSmall()) - operator delete(static_cast(Begin)); + operator delete(Begin); Begin = NewElts; End = NewElts+CurSize;