The old fir.allocmem operation returned a !fir.heap<.> type. The new
fir.alloca operation returns a !fir.ref<.> type. This patch inserts a
fir.convert so that the old type is preserved. This prevents verifier
failures when types returned from fir.if statements don't match the
expected type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, except for the casts. Thank you!
flang/lib/Optimizer/Transforms/StackArrays.cpp | ||
---|---|---|
478 | Please use new style for the casts (see https://reviews.llvm.org/D151556). |
Please use new style for the casts (see https://reviews.llvm.org/D151556).