This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't crash on initialization with a zero-sized derived type
ClosedPublic

Authored by klausler on Jun 3 2022, 4:05 PM.

Details

Summary

Avoid calls to memcpy with zero byte counts if their address argument
calculations may not be valid expressions.

Diff Detail

Event Timeline

klausler created this revision.Jun 3 2022, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 4:05 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 3 2022, 4:05 PM
vdonaldson accepted this revision.Jun 3 2022, 5:15 PM
This revision is now accepted and ready to land.Jun 3 2022, 5:15 PM