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:
ebfe07f
)
capacity is a pointer, not a value
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Aug 2006 01:54:17 +0000
(
01:54
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Aug 2006 01:54:17 +0000
(
01:54
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29564
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 0ade4847b43c0ba219a30533d19343b1835e8f61..3e952ac4475946245c09eca3c2bd903812d91928 100644
(file)
--- a/
include/llvm/ADT/SmallVector.h
+++ b/
include/llvm/ADT/SmallVector.h
@@
-148,7
+148,7
@@
public:
void assign(unsigned NumElts, const T &Elt) {
clear();
- if (NumElts > Capacity)
+ if (
Begin+
NumElts > Capacity)
grow(NumElts);
End = Begin+NumElts;
for (; NumElts; --NumElts)