This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix looping on LEN type parameter usage
ClosedPublic

Authored by klausler on Jun 21 2023, 1:50 PM.

Details

Summary

When a LEN type parameter of one PDT is being used as the value
of a LEN type parameter in another PDT, expression rewriting can
loop infinitely due to an incorrect assumption that the same PDT's
parameters are being referenced.

Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63198

Diff Detail

Event Timeline

klausler created this revision.Jun 21 2023, 1:50 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jun 21 2023, 1:50 PM
PeteSteinfeld accepted this revision.Jun 21 2023, 2:06 PM

All builds and tests correctly and looks good.

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