[flang] [llvm] [flang] Add special genre for allocatable and pointer device component (PR #157731)
Peter Klausler via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 9 11:42:50 PDT 2025
================
@@ -95,10 +95,16 @@ RT_API_ATTRS std::size_t Component::SizeInBytes(
RT_API_ATTRS void Component::EstablishDescriptor(Descriptor &descriptor,
const Descriptor &container, Terminator &terminator) const {
ISO::CFI_attribute_t attribute{static_cast<ISO::CFI_attribute_t>(
- genre_ == Genre::Allocatable ? CFI_attribute_allocatable
- : genre_ == Genre::Pointer ? CFI_attribute_pointer
- : CFI_attribute_other)};
+ genre_ == Genre::Allocatable || genre_ == Genre::AllocatableDevice
+ ? CFI_attribute_allocatable
+ : genre_ == Genre::Pointer || genre_ == Genre::pointerDevice
----------------
klausler wrote:
Please capitalize `PointerDevice`.
https://github.com/llvm/llvm-project/pull/157731
More information about the llvm-commits
mailing list