File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ void DIBuilder::finalize() {
79
79
// list. Use a set to remove the duplicates while we transform the
80
80
// TrackingVHs back into Values.
81
81
SmallPtrSet<Metadata *, 16 > RetainSet;
82
- for (unsigned I = 0 , E = AllRetainTypes. size (); I < E; I++ )
83
- if (RetainSet.insert (AllRetainTypes[I] ).second )
84
- RetainValues.push_back (AllRetainTypes[I] );
82
+ for (const TrackingMDNodeRef &N : AllRetainTypes)
83
+ if (RetainSet.insert (N ).second )
84
+ RetainValues.push_back (N );
85
85
86
86
if (!RetainValues.empty ())
87
87
CUNode->replaceRetainedTypes (MDTuple::get (VMContext, RetainValues));
Original file line number Diff line number Diff line change @@ -823,9 +823,8 @@ void PMTopLevelManager::dumpPasses() const {
823
823
return ;
824
824
825
825
// Print out the immutable passes
826
- for (unsigned i = 0 , e = ImmutablePasses.size (); i != e; ++i) {
827
- ImmutablePasses[i]->dumpPassStructure (0 );
828
- }
826
+ for (ImmutablePass *Pass : ImmutablePasses)
827
+ Pass->dumpPassStructure (0 );
829
828
830
829
// Every class that derives from PMDataManager also derives from Pass
831
830
// (sometimes indirectly), but there's no inheritance relationship
You can’t perform that action at this time.
0 commit comments