This is an archive of the discontinued LLVM Phabricator instance.

[flang] Error recovery in bad specific MIN/MAX calls
ClosedPublic

Authored by klausler on Jun 21 2023, 2:36 PM.

Details

Summary

When a specific MIN/MAX intrinsic function (e.g. MAX1) reference
has an actual argument error, ensure that a later attempt to fold
the call into a constant doesn't crash due to a missing argument.
Fixes https://github.com/llvm/llvm-project/issues/63140

Diff Detail

Event Timeline

klausler created this revision.Jun 21 2023, 2:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 2:36 PM
klausler requested review of this revision.Jun 21 2023, 2:36 PM
PeteSteinfeld accepted this revision.Jun 21 2023, 3:00 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 21 2023, 3:00 PM
This revision was automatically updated to reflect the committed changes.