Under some conditions, the defining op may be NULL, so
accept that rahter than try to use it and crash!
Adds test to prevent regression
Fixes github issue #57201
Paths
| Differential D132238
[Flang]Fix another way to crash SimplifyIntrinsics ClosedPublic Authored by Leporacanthicus on Aug 19 2022, 8:31 AM.
Details Summary Under some conditions, the defining op may be NULL, so Adds test to prevent regression Fixes github issue #57201
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 19 2022, 8:31 AM This revision is now accepted and ready to land.Aug 19 2022, 9:17 AM Closed by commit rG72e599197c77: [Flang]Fix another way to crash SimplifyIntrinsics (authored by MatsPetersson). · Explain WhyAug 19 2022, 11:00 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 454065 flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
flang/test/Transforms/simplifyintrinsics.fir
|