This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Convert nonnull pointer parameter to a reference.
ClosedPublic

Authored by ymandel on Feb 10 2023, 7:04 AM.

Details

Summary

The parameter in question belongs to a function that is only called once. This patch updates the API to use a reference and changes the caller accordingly.

Diff Detail

Event Timeline

ymandel created this revision.Feb 10 2023, 7:04 AM
Herald added a project: Restricted Project. · View Herald Transcript
ymandel requested review of this revision.Feb 10 2023, 7:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 7:04 AM
xazax.hun accepted this revision.Feb 10 2023, 7:38 AM
This revision is now accepted and ready to land.Feb 10 2023, 7:38 AM

Just realized this is actually more complicated to change, assuming I also want to update all the derived classes. For now, I'll limit the scope of the change to these files, but I'll follow up with an overload-based solution to admit either kind of derived class until we can port them all over to then new signature.

ymandel updated this revision to Diff 496477.Feb 10 2023, 7:52 AM

add fixme and fix compilation error

This revision was landed with ongoing or failed builds.Feb 10 2023, 7:53 AM
This revision was automatically updated to reflect the committed changes.