This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't crash in error recovery situation
ClosedPublic

Authored by klausler on Aug 7 2023, 2:56 PM.

Details

Summary

When folding the TRANSFER() intrinsic function, there's a CHECK()
that the initial image was built without error. However, there is one
condition that elicits a warning -- a derived type SOURCE= with an
allocatable or dynamic component. Remove this CHECK().

Fixes llvm-test-suite/Fortran/gfortran/regression/transfer_null_1.f90.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 2:56 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 2:56 PM
PeteSteinfeld accepted this revision.Aug 7 2023, 5:59 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 7 2023, 5:59 PM
This revision was automatically updated to reflect the committed changes.