This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash in folding TRANSFER() with MOLD=substring
ClosedPublic

Authored by klausler on Mar 9 2023, 4:25 PM.

Details

Summary

When a substring appears as the MOLD= argument to TRANSFER(),
it's possible for the compiler to assert if it can't figure
out a constant length for the substring. Fix.

Diff Detail

Event Timeline

klausler created this revision.Mar 9 2023, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2023, 4:25 PM
klausler requested review of this revision.Mar 9 2023, 4:25 PM
PeteSteinfeld accepted this revision.Mar 10 2023, 6:19 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 10 2023, 6:19 AM