This is an archive of the discontinued LLVM Phabricator instance.

[NFC][Outliner] Delete default ctors for Candidate & OutlinedFunction.
ClosedPublic

Authored by aemerson on Mar 18 2023, 11:21 PM.

Details

Summary

I think it's good practice to avoid having default ctors unless they're really
valid/useful. For OutlinedFunction the default ctor was used to represent a
bail-out value for getOutliningCandidateInfo(), so I changed the API to return
an optional<getOutliningCandidateInfo> instead which seems a tad cleaner.

Diff Detail

Event Timeline

aemerson created this revision.Mar 18 2023, 11:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2023, 11:21 PM
aemerson requested review of this revision.Mar 18 2023, 11:21 PM
This revision is now accepted and ready to land.Mar 20 2023, 10:29 AM
This revision was landed with ongoing or failed builds.Mar 20 2023, 11:17 AM
This revision was automatically updated to reflect the committed changes.