This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix cycle-catcher in procedure characterization
ClosedPublic

Authored by klausler on Mar 24 2022, 3:50 PM.

Details

Summary

The "seenProcs" sets passed as arguments to the procedure and dummy
procedure characterization routines need to be passed by value so that
local updates to those sets do not become permanent. They are
presently passed by reference and that has led to bogus errors about
recursively defined procedures in testing.

(It might be faster to pass the sets by reference and undo those local
updates in these functions, but that's error-prone, and the performance
difference is not expected to be detectable in practice.)

Diff Detail

Event Timeline

klausler created this revision.Mar 24 2022, 3:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 3:50 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 24 2022, 3:50 PM
jeanPerier accepted this revision.Mar 25 2022, 2:04 AM
This revision is now accepted and ready to land.Mar 25 2022, 2:04 AM
This revision was automatically updated to reflect the committed changes.