@@ -37,9 +37,9 @@ class TinyPtrVector {
37
37
delete V;
38
38
}
39
39
40
- // / empty() - This vector can be empty if it contains no element, or if it
41
- // / contains a pointer to an empty vector.
42
40
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.
43
43
if (Val.isNull ()) return true ;
44
44
if (VecTy *Vec = Val.template dyn_cast <VecTy*>())
45
45
return Vec->empty ();
@@ -49,9 +49,9 @@ class TinyPtrVector {
49
49
unsigned size () const {
50
50
if (empty ())
51
51
return 0 ;
52
- if (Val. template is <EltTy>())
52
+ if (Val.template is <EltTy>())
53
53
return 1 ;
54
- return Val. template get <VecTy*>()->size ();
54
+ return Val.template get <VecTy*>()->size ();
55
55
}
56
56
57
57
typedef const EltTy *iterator;
@@ -83,9 +83,9 @@ class TinyPtrVector {
83
83
return V;
84
84
}
85
85
86
- assert (i < Val. template get <VecTy*>()->size () &&
86
+ assert (i < Val.template get <VecTy*>()->size () &&
87
87
" tinyvector index out of range" );
88
- return (*Val. template get <VecTy*>())[i];
88
+ return (*Val.template get <VecTy*>())[i];
89
89
}
90
90
91
91
EltTy front () const {
@@ -105,7 +105,7 @@ class TinyPtrVector {
105
105
}
106
106
107
107
// 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>()) {
109
109
Val = new VecTy ();
110
110
Val.template get <VecTy*>()->push_back (V);
111
111
}
0 commit comments