This is an archive of the discontinued LLVM Phabricator instance.

fix to swap all members in StringMapImpl::swap
AbandonedPublic

Authored by takuto.ikuta on May 12 2017, 6:32 AM.

Details

Reviewers
thakis

Diff Detail

Event Timeline

takuto.ikuta created this revision.May 12 2017, 6:32 AM
takuto.ikuta added a reviewer: thakis.

Nico, can I ask you to review this simple fix?

I just found this and realized I missed it for a very long time. I tried adding a test case, but while doing so I think this change doesn't actually change behavior: StringMapImpl::swap is only used by StringMap<T>::operator=, which guarantees that lhs and rhs have the same T and the underlying StringMapImpls the same ItemSize for that reason.

Did this cause any issues in practice?

Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2020, 8:28 AM
Herald added a subscriber: dexonsmith. · View Herald Transcript
davide removed a subscriber: davide.Dec 22 2020, 8:36 AM
takuto.ikuta abandoned this revision.Dec 25 2020, 7:47 PM

Sorry, this is not important, let me abandon this.