This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Simplify code using std::optional
ClosedPublic

Authored by kongyi on Mar 31 2023, 2:19 AM.

Details

Summary

Use std::optional instead of tracking if it is the first profile seen.

Diff Detail

Event Timeline

kongyi created this revision.Mar 31 2023, 2:19 AM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
kongyi requested review of this revision.Mar 31 2023, 2:19 AM
srhines accepted this revision.Mar 31 2023, 10:41 PM
This revision is now accepted and ready to land.Mar 31 2023, 10:41 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2023, 10:48 PM