diff options
author | Mircea Trofin <mtrofin@google.com> | 2021-11-13 22:03:10 -0800 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2021-11-14 19:03:30 -0800 |
commit | a32c2c380863d02eb0fd5e8757a62d96114b9519 (patch) | |
tree | a8efd17605ad68ca7810556740703fb38c29f9c4 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | eec9ca622c2df2bcf3ffa7fad5a2381b829758b7 (diff) | |
download | llvm-a32c2c380863d02eb0fd5e8757a62d96114b9519.zip llvm-a32c2c380863d02eb0fd5e8757a62d96114b9519.tar.gz llvm-a32c2c380863d02eb0fd5e8757a62d96114b9519.tar.bz2 |
[NFC] Use Optional<ProfileCount> to model invalid counts
ProfileCount could model invalid values, but a user had no indication
that the getCount method could return bogus data. Optional<ProfileCount>
addresses that, because the user must dereference the optional. In
addition, the patch removes concept duplication.
Differential Revision: https://reviews.llvm.org/D113839
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions