This is an archive of the discontinued LLVM Phabricator instance.

ADT: Weaken SmallVector::resize assertion from 5abf76fbe37380874a88cc9aa02164800e4e10f3
ClosedPublic

Authored by dexonsmith on Nov 19 2020, 5:19 PM.

Details

Summary

There's no need to check for reference invalidation when
SmallVector::resize is shrinking; the parameter isn't accessed.

Diff Detail

Event Timeline

dexonsmith created this revision.Nov 19 2020, 5:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2020, 5:19 PM
Herald added a subscriber: ributzka. · View Herald Transcript
dexonsmith requested review of this revision.Nov 19 2020, 5:19 PM
silvas accepted this revision.Nov 19 2020, 5:21 PM
This revision is now accepted and ready to land.Nov 19 2020, 5:21 PM
This revision was automatically updated to reflect the committed changes.