This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fixes several bugs relating to initialization expressions. An (#1493)
ClosedPublic

Authored by clementval on Jun 22 2022, 2:01 PM.

Details

Summary

Fixes several bugs relating to initialization expressions. An
initialization expression has no access to dynamic resources like the
stack or the heap. It must reduce to a relocatable expression that the
loader can complete at runtime.

Adds regression test.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Jun 22 2022, 2:01 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 22 2022, 2:01 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 22 2022, 2:01 PM
PeteSteinfeld accepted this revision.Jun 22 2022, 2:38 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 22 2022, 2:38 PM