This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't emit debugging output to module file
ClosedPublic

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

Details

Summary

When a constant array value has a non-default lower bound, the current
expression formatting code uses a non-Fortran syntax to dump the lower
bounds. (There's no way in Fortran to explicitly specify such a constant value,
but they can be created through the use of named constants.) But we
don't want this lower bounds syntax from expression dumping to show up
in module files, since it can't be parsed back in. So disable that
part of expression formatting by default.

Fixes https://github.com/llvm/llvm-project/issues/64391.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 2:25 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:25 PM
klausler edited the summary of this revision. (Show Details)
PeteSteinfeld accepted this revision.Aug 7 2023, 5:56 PM

All builds and tests correctly and looks good.

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