This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix a UBSAN failure for passing INT64_MIN to std::abs.
ClosedPublic

Authored by craig.topper on Aug 18 2023, 12:16 PM.

Details

Summary

clang recently started checking for INT64_MIN being passed to 64-bit std::abs.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 18 2023, 12:16 PM
craig.topper requested review of this revision.Aug 18 2023, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 12:16 PM
MaskRay accepted this revision.Aug 18 2023, 12:34 PM
This revision is now accepted and ready to land.Aug 18 2023, 12:34 PM
This revision was landed with ongoing or failed builds.Aug 18 2023, 12:47 PM
This revision was automatically updated to reflect the committed changes.