In case a character component PDT length only depends on kind parameters,
fold it while instantiating the PDT. This is especially important if the
component has an initializer because later semantic phases (offset
computation or runtime type info generation) might get confused and
generate offset/type info that will lead to crashes in lowering.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Use IsActuallyConstant and make the required instantiation available to the linker.
Revert unrelated format change.
flang/lib/Semantics/type.cpp | ||
---|---|---|
433 | Typo in name (and also below at the use site): should be FoldCharacterLength with a 'c' before the first 't'. |
Odd formatting without substantive change.