This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix new assertion failure
ClosedPublic

Authored by klausler on Feb 11 2023, 12:20 PM.

Details

Summary

Don't compute the address of element [0] of a vector when the vector
is empty, even if the address is not used.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 12:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2023, 12:20 PM
klausler requested review of this revision.Feb 11 2023, 12:20 PM
This revision is now accepted and ready to land.Feb 11 2023, 9:29 PM
This revision was automatically updated to reflect the committed changes.