This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Fix usage of uninitialized resolution variable
ClosedPublic

Authored by pscoro on Apr 5 2023, 7:34 AM.

Details

Summary

Recent Flang PowerPC intrinsics patch used resolution variable without checking if it exists first, causing segmentation faults in some scenarios. This patch checks that the resolution variable exists first before usage.

Diff Detail

Event Timeline

pscoro created this revision.Apr 5 2023, 7:34 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 5 2023, 7:34 AM
pscoro requested review of this revision.Apr 5 2023, 7:34 AM
DanielCChen accepted this revision.Apr 5 2023, 7:57 AM
This revision is now accepted and ready to land.Apr 5 2023, 7:57 AM
This revision was automatically updated to reflect the committed changes.