[all-commits] [llvm/llvm-project] b7691d: [flang] Accept polymorphic component element in st...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Thu Feb 23 08:28:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7691d7be0362499eaadbec13cec5f2e248836f6
https://github.com/llvm/llvm-project/commit/b7691d7be0362499eaadbec13cec5f2e248836f6
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-02-23 (Thu, 23 Feb 2023)
Changed paths:
M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
M flang/test/Lower/Intrinsics/storage_size.f90
Log Message:
-----------
[flang] Accept polymorphic component element in storage_size
When an element is extracted from a polymorphic array, it is
represented as a PolymorphicValue. The PolymorphicValue is
not a boxed value but holds the original polyrmophic array
and the element itself. This was raising an error in storage_size
lowering since we expect a boxed value to take advantage of
fir.box_elesize.
This patch handles PolymorphicValue correctly.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D144643
More information about the All-commits
mailing list