File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,8 @@ struct AssociatedTypeRecordIterator {
266
266
return *this ;
267
267
}
268
268
269
+ AssociatedTypeRecordIterator (const AssociatedTypeRecordIterator &Other)
270
+ : Cur(Other.Cur), End(Other.End) {}
269
271
AssociatedTypeRecordIterator
270
272
operator =(const AssociatedTypeRecordIterator &Other) {
271
273
return { Other.Cur , Other.End };
Original file line number Diff line number Diff line change @@ -564,6 +564,10 @@ class FormatWalker : public SourceEntityWalker {
564
564
public:
565
565
SourceLocIterator (TokenIt It) :It(It) {}
566
566
SourceLocIterator (const SourceLocIterator& mit) : It(mit.It) {}
567
+ const SourceLocIterator &operator =(const SourceLocIterator &mit) {
568
+ It = mit.It ;
569
+ return *this ;
570
+ }
567
571
SourceLocIterator& operator ++() {++It; return *this ;}
568
572
SourceLocIterator operator ++(int ) {
569
573
SourceLocIterator tmp (*this );
Original file line number Diff line number Diff line change @@ -160,6 +160,8 @@ class ReachingBlockSet {
160
160
return !(*this == RHS);
161
161
}
162
162
163
+ ReachingBlockSet (const ReachingBlockSet &RHS)
164
+ : Bits(RHS.Bits), NumBitWords(RHS.NumBitWords) {}
163
165
const ReachingBlockSet &operator =(const ReachingBlockSet &RHS) {
164
166
assert (NumBitWords == RHS.NumBitWords && " mismatched sets" );
165
167
for (size_t i = 0 , e = NumBitWords; i != e; ++i)
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ template <class E> class Added {
28
28
29
29
public:
30
30
Added () {}
31
- Added (E NewContents) { Contents = NewContents; }
31
+ Added (E NewContents) : Contents(NewContents) {}
32
+ Added (const Added<E> &rhs) : Contents(rhs.Contents) {}
32
33
const Added<E> &operator =(const Added<E> &rhs) {
33
34
Contents = rhs.Contents ;
34
35
return *this ;
You can’t perform that action at this time.
0 commit comments