This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Use numeric_limits instead of raw INT_MAX
ClosedPublic

Authored by ldionne on Nov 17 2022, 7:33 AM.

Details

Reviewers
philnik
Group Reviewers
Restricted Project
Commits
rGeaa4f041f786: [libc++] Use numeric_limits instead of raw INT_MAX
Summary

This allows discard_block_engine to work on platforms that might not
provide a full <limits.h> header.

Diff Detail

Event Timeline

ldionne created this revision.Nov 17 2022, 7:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 7:33 AM
ldionne requested review of this revision.Nov 17 2022, 7:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 7:33 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Nov 17 2022, 7:52 AM
This revision is now accepted and ready to land.Nov 17 2022, 7:52 AM
ldionne updated this revision to Diff 476437.Nov 18 2022, 5:22 AM

Disable static_assert in C++03.

This revision was automatically updated to reflect the committed changes.