This is an archive of the discontinued LLVM Phabricator instance.

[clang][llvm][NFC] Change misexpect's tolerance option to be 32-bit
ClosedPublic

Authored by paulkirth on Aug 15 2022, 6:27 PM.

Details

Summary

In D131869 we noticed that we jump through some hoops because we parse the
tolerance option used in MisExpect.cpp into a 64-bit integer. This is
unnecessary, since the value can only be in the range [0, 100).

This patch changes the underlying type to be 32-bit from where it is
parsed in Clang through to it's use in LLVM.

Diff Detail

Event Timeline

paulkirth created this revision.Aug 15 2022, 6:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2022, 6:27 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
paulkirth requested review of this revision.Aug 15 2022, 6:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 15 2022, 6:27 PM
jloser accepted this revision.Aug 17 2022, 7:27 AM

LGTM! Thanks for the follow-up cleanup. I'll rebase once this lands to avoid the cast in https://reviews.llvm.org/D131869 if that works for you.

This revision is now accepted and ready to land.Aug 17 2022, 7:27 AM
This revision was landed with ongoing or failed builds.Aug 17 2022, 7:39 AM
This revision was automatically updated to reflect the committed changes.