projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccd95b5
)
Remove unnecessary static_casts.
author
Dan Gohman
<gohman@apple.com>
Mon, 7 Jul 2008 18:08:20 +0000
(18:08 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 7 Jul 2008 18:08:20 +0000
(18:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53181
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SmallVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallVector.h
b/include/llvm/ADT/SmallVector.h
index 6faa3cc0ca26170e1e1e3c908834991343b875bb..d98d40a3f391c81a9ea4613debd3acb8cc133f87 100644
(file)
--- 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;