This is an archive of the discontinued LLVM Phabricator instance.

[nfc] simplify promoteIndirectCalls
ClosedPublic

Authored by mtrofin on Jul 11 2023, 3:57 PM.

Details

Summary

There's no caller to promoteIndirectCalls that would pass a nullptr
ModuleAnalysisManager, so passing it by reference does away with a
bunch of nullptr tests, and also removes the need for a "OwnedORE".

Diff Detail

Event Timeline

mtrofin created this revision.Jul 11 2023, 3:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 3:57 PM
mtrofin requested review of this revision.Jul 11 2023, 3:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 3:57 PM
xur accepted this revision.Jul 12 2023, 1:59 PM

LGTM. Thanks for the cleanup!

This revision is now accepted and ready to land.Jul 12 2023, 1:59 PM
This revision was landed with ongoing or failed builds.Jul 12 2023, 2:20 PM
This revision was automatically updated to reflect the committed changes.