From d24c62c67e674a856af25a93846619b4f0d3e234 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 7 Jul 2008 18:08:20 +0000 Subject: [PATCH] Remove unnecessary static_casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53181 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/SmallVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;