This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Lower NULL(MOLD) to a variable
ClosedPublic

Authored by jeanPerier on Apr 24 2023, 4:33 AM.

Details

Summary

HLFIR lowering promotes intrinsic results lowered in memory to
hlfir.expr to underline their read-only aspect once they are created.
NULL(MOLD) should not be promoted to an hlfir.expr, it is the NULL
variable (we need to see it as an address).

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 24 2023, 4:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 4:33 AM
jeanPerier requested review of this revision.Apr 24 2023, 4:33 AM
This revision is now accepted and ready to land.Apr 24 2023, 9:41 AM
This revision was automatically updated to reflect the committed changes.