OSDN Git Service
(root)
/
android-x86
/
external-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
0ade484
..
3e952ac
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)