This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept NULL(mold=x) as constant component value in constant structure constructor
ClosedPublic

Authored by klausler on Feb 10 2022, 8:58 AM.

Details

Summary

The predicate IsInitialDataTarget() was failing to return a correct true
result in the case of a reference to the intrinsic function NULL() with a
MOLD= argument. Fix, and improve tests for "NULL()" elsewhere in semantics,
checking for an attribute set by intrinsics.cpp rather than the actual name.

Diff Detail

Event Timeline

klausler created this revision.Feb 10 2022, 8:58 AM
klausler requested review of this revision.Feb 10 2022, 8:58 AM
mleair accepted this revision.Feb 14 2022, 11:11 AM

LGTM

This revision is now accepted and ready to land.Feb 14 2022, 11:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 2:47 PM