This is an archive of the discontinued LLVM Phabricator instance.

[flang] Supply missing source location for a message
ClosedPublic

Authored by klausler on Oct 4 2022, 3:12 PM.

Details

Summary

An error message in semantic analysis of SELECT TYPE type guards
doesn't allow for the possibility of failure from FindSourceLocation(),
and that can happen when the type guard is just an intrinsic type
name like "type is (character)". Deal with it.

Diff Detail

Event Timeline

klausler created this revision.Oct 4 2022, 3:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 3:12 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 4 2022, 3:12 PM
This revision is now accepted and ready to land.Oct 4 2022, 11:14 PM
This revision was automatically updated to reflect the committed changes.