This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't fold zero-length substring references
ClosedPublic

Authored by klausler on Jul 22 2022, 12:14 PM.

Details

Summary

In some contexts the code looks cleaner if we fold zero-length substring
references into empty character constants, but those don't work in
variable definition contexts and can lead to bogus semantic error
messages.

Diff Detail

Event Timeline

klausler created this revision.Jul 22 2022, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2022, 12:14 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jul 22 2022, 12:14 PM
klausler edited reviewers, added: vdonaldson; removed: jeanPerier.Jul 22 2022, 12:17 PM
vdonaldson accepted this revision.Jul 22 2022, 1:05 PM
This revision is now accepted and ready to land.Jul 22 2022, 1:05 PM
This revision was automatically updated to reflect the committed changes.