This is an archive of the discontinued LLVM Phabricator instance.

NFC: Change usage of 'DenseSet' to 'DenseSetImpl' in DenseSetImpl::ConstIterator.
ClosedPublic

Authored by rriddle on May 26 2019, 10:59 AM.

Details

Summary

Change usage of 'DenseSet' to 'DenseSetImpl' in a friend declaration within DenseSetImpl::ConstIterator. 'ConstIterator' was never updated when DenseSet was split into an impl when adding support for DenseSetImpl.

This fixes build errors on MSVC when forward declaring DenseSet as this friend decl does not declare the template arguments as well.

Diff Detail

Repository
rL LLVM

Event Timeline

rriddle created this revision.May 26 2019, 10:59 AM

This seems to be missing the explanation of the motivation?

rriddle edited the summary of this revision. (Show Details)May 26 2019, 11:32 AM

Updated. This was actually a missed change from the split of DenseSet here(https://reviews.llvm.org/D25628) that results in build errors on MSVC when forward declaring DenseSet. This friend decl does not forward declare the template arguments as well, which creates a mismatch.

jpienaar accepted this revision.May 27 2019, 10:25 AM
jpienaar added a subscriber: jpienaar.

This make the declaration of ConstIterator and Iterator equivalent (line 107), so SGTM.

This revision is now accepted and ready to land.May 27 2019, 10:25 AM
This revision was automatically updated to reflect the committed changes.