Skip to content

Commit 71fbd6b

Browse files
committed
various cleanups noticed by Frits
llvm-svn: 135396
1 parent 03f16a0 commit 71fbd6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/include/llvm/ADT/TinyPtrVector.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class TinyPtrVector {
3737
delete V;
3838
}
3939

40-
/// empty() - This vector can be empty if it contains no element, or if it
41-
/// contains a pointer to an empty vector.
4240
bool empty() const {
41+
// This vector can be empty if it contains no element, or if it
42+
// contains a pointer to an empty vector.
4343
if (Val.isNull()) return true;
4444
if (VecTy *Vec = Val.template dyn_cast<VecTy*>())
4545
return Vec->empty();
@@ -49,9 +49,9 @@ class TinyPtrVector {
4949
unsigned size() const {
5050
if (empty())
5151
return 0;
52-
if (Val. template is<EltTy>())
52+
if (Val.template is<EltTy>())
5353
return 1;
54-
return Val. template get<VecTy*>()->size();
54+
return Val.template get<VecTy*>()->size();
5555
}
5656

5757
typedef const EltTy *iterator;
@@ -83,9 +83,9 @@ class TinyPtrVector {
8383
return V;
8484
}
8585

86-
assert(i < Val. template get<VecTy*>()->size() &&
86+
assert(i < Val.template get<VecTy*>()->size() &&
8787
"tinyvector index out of range");
88-
return (*Val. template get<VecTy*>())[i];
88+
return (*Val.template get<VecTy*>())[i];
8989
}
9090

9191
EltTy front() const {
@@ -105,7 +105,7 @@ class TinyPtrVector {
105105
}
106106

107107
// If we have a single value, convert to a vector.
108-
if (EltTy V = Val.template dyn_cast<EltTy>()) {
108+
if (EltTy V = Val.template dyn_cast<EltTy>()) {
109109
Val = new VecTy();
110110
Val.template get<VecTy*>()->push_back(V);
111111
}

0 commit comments

Comments
 (0)