This is an archive of the discontinued LLVM Phabricator instance.

[IR] Change access rights of PredIterator members
ClosedPublic

Authored by slydiman on Aug 10 2022, 11:38 AM.

Details

Summary

These members were made private here https://github.com/llvm/llvm-project/commit/6177386b05ddaaee04160b153a41ed4edbd7bcaf without an explanation.
Our customers have an own implementation inherited from PredIterator with updated advancePastNonTerminators().
The access specifier protected looks resonable and safe here.

Diff Detail

Event Timeline

slydiman created this revision.Aug 10 2022, 11:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2022, 11:38 AM
slydiman requested review of this revision.Aug 10 2022, 11:38 AM
RKSimon accepted this revision.Aug 15 2022, 4:10 AM

LGTM

llvm/include/llvm/IR/CFG.h
42

We usually inherit (CRTP style) from iterator_adaptor_base - not sure why we don't here.

This revision is now accepted and ready to land.Aug 15 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.