fir.class type is always needed for polymorphic and unlimited
polymorphic entities. Wrapping the element type with a fir.class
type was done in ConvertType for some case and else where in the
code for other. Centralize this in ConvertType when converting
from expr or symbol.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
flang/lib/Lower/ConvertType.cpp | ||
---|---|---|
291 | Will this also fir.class for TYPE(*) ? Until now, fir.box<None> was used for them, right ? |
flang/lib/Lower/ConvertType.cpp | ||
---|---|---|
291 | It's not clear in my mind as well and I think for the time being keeping them as fir.box<none> might be safer. I'll update the boolean value to get rid of assumed type. |
Will this also fir.class for TYPE(*) ? Until now, fir.box<None> was used for them, right ?
I am not opposed using fir.class for them too, the fallout is just not 100% clear in my mind.