File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -196,21 +196,15 @@ bool MetadataTracking::isReplaceable(const Metadata &MD) {
196
196
}
197
197
198
198
SmallVector<Metadata *, 4 > ReplaceableMetadataImpl::getAllArgListUsers () {
199
- SmallVector<std::pair<OwnerTy, uint64_t > *> MDUsersWithID ;
199
+ SmallVector<Metadata *, 4 > MDUsers ;
200
200
for (auto Pair : UseMap) {
201
201
OwnerTy Owner = Pair.second .first ;
202
202
if (!Owner.is <Metadata *>())
203
203
continue ;
204
204
Metadata *OwnerMD = Owner.get <Metadata *>();
205
205
if (OwnerMD->getMetadataID () == Metadata::DIArgListKind)
206
- MDUsersWithID .push_back (&UseMap[Pair. first ] );
206
+ MDUsers .push_back (OwnerMD );
207
207
}
208
- llvm::sort (MDUsersWithID, [](auto UserA, auto UserB) {
209
- return UserA->second < UserB->second ;
210
- });
211
- SmallVector<Metadata *> MDUsers;
212
- for (auto UserWithID : MDUsersWithID)
213
- MDUsers.push_back (UserWithID->first .get <Metadata *>());
214
208
return MDUsers;
215
209
}
216
210
You can’t perform that action at this time.
0 commit comments