This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle typeless (BOZ) arguments in AreCompatibleTypes()
ClosedPublic

Authored by klausler on Aug 28 2023, 3:09 PM.

Details

Summary

The current code can crash due to the representation's use of a negative
INTEGER kind code to signify a typeless (BOZ) argument's "type" as a
DynamicType. Detect and handle that case, and change some direct
uses of the kind_ data member into kind() accessor references in
places that shouldn't be confronted with BOZ.

Diff Detail

Event Timeline

klausler created this revision.Aug 28 2023, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 3:09 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 28 2023, 3:09 PM
This revision is now accepted and ready to land.Aug 28 2023, 3:46 PM