This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn on overflow folding DIM()
ClosedPublic

Authored by klausler on Feb 10 2023, 5:27 PM.

Details

Summary

The intrinsic function DIM can overflow when its second argument
is negative. Detect this case for real and integer arguments and
emit a warning when necessary.

Diff Detail

Event Timeline

klausler created this revision.Feb 10 2023, 5:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 5:27 PM
klausler requested review of this revision.Feb 10 2023, 5:27 PM
vzakhari accepted this revision.Feb 10 2023, 5:36 PM
This revision is now accepted and ready to land.Feb 10 2023, 5:36 PM
This revision was landed with ongoing or failed builds.Feb 12 2023, 5:23 PM
This revision was automatically updated to reflect the committed changes.