summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-04-22 19:52:05 +0000
committerRui Ueyama <ruiu@google.com>2014-04-22 19:52:05 +0000
commit44fa7c35ee64fbfb655825be613eaf125d3323e5 (patch)
treea929d0a85eace84719366dd053add6ede8bcedb4 /include
parent7ff1eb23a2f2da122ede0b61374df12c8058fb82 (diff)
downloadllvm-44fa7c35ee64fbfb655825be613eaf125d3323e5.tar.gz
llvm-44fa7c35ee64fbfb655825be613eaf125d3323e5.tar.bz2
llvm-44fa7c35ee64fbfb655825be613eaf125d3323e5.tar.xz
Whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/SmallVector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index 1afa4a21b0..791d03c649 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -220,7 +220,7 @@ protected:
/// Guarantees space for at least one more element, or MinSize more
/// elements if specified.
void grow(size_t MinSize = 0);
-
+
public:
void push_back(const T &Elt) {
if (this->EndX >= this->CapacityX)
@@ -247,7 +247,7 @@ template <typename T, bool isPodLike>
void SmallVectorTemplateBase<T, isPodLike>::grow(size_t MinSize) {
size_t CurCapacity = this->capacity();
size_t CurSize = this->size();
- // Always grow, even from zero.
+ // Always grow, even from zero.
size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2));
if (NewCapacity < MinSize)
NewCapacity = MinSize;
@@ -332,7 +332,7 @@ public:
memcpy(this->end(), &Elt, sizeof(T));
this->setEnd(this->end()+1);
}
-
+
void pop_back() {
this->setEnd(this->end()-1);
}