diff options
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/SmallVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 6faa3cc..d98d40a 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; |