This is an archive of the discontinued LLVM Phabricator instance.

[flang] Detect fir.class nested in fir.box as invalid element type
ClosedPublic

Authored by clementval on Mar 14 2023, 12:10 PM.

Details

Summary

Catch invalid element type in fir.box in the verifier so
it does not propagate later in lowering.

Diff Detail

Event Timeline

clementval created this revision.Mar 14 2023, 12:10 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 14 2023, 12:10 PM
clementval requested review of this revision.Mar 14 2023, 12:10 PM
PeteSteinfeld requested changes to this revision.Mar 14 2023, 12:59 PM

When I build and test this patch, I get errors:

Failed Tests (2):
  Flang :: Lower/HLFIR/allocatables-and-pointers.f90
  Flang :: Lower/Intrinsics/associated.f90

Let me know if you need more detail on the failures.

This revision now requires changes to proceed.Mar 14 2023, 12:59 PM

When I build and test this patch, I get errors:

Failed Tests (2):
  Flang :: Lower/HLFIR/allocatables-and-pointers.f90
  Flang :: Lower/Intrinsics/associated.f90

Let me know if you need more detail on the failures.

The dependency was wrong. I updated it and it should be fine now.

I'm still getting the same failures.

Something was probably messed up with the dependency. I rebased this patch now that the other has landed.

PeteSteinfeld accepted this revision.Mar 15 2023, 6:29 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 15 2023, 6:29 AM