summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SmallVector.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 18:08:20 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 18:08:20 +0000
commitd24c62c67e674a856af25a93846619b4f0d3e234 (patch)
tree6adf08432c5ee650ea1518ad8d1bce91be2b8ec0 /include/llvm/ADT/SmallVector.h
parentccd95b5f9ceb4f022d29cd14173ccdf0333ff77b (diff)
downloadllvm-d24c62c67e674a856af25a93846619b4f0d3e234.tar.gz
llvm-d24c62c67e674a856af25a93846619b4f0d3e234.tar.bz2
llvm-d24c62c67e674a856af25a93846619b4f0d3e234.tar.xz
Remove unnecessary static_casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallVector.h')
-rw-r--r--include/llvm/ADT/SmallVector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index 6faa3cc0ca..d98d40a3f3 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<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;