[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:49 PDT 2025
================
@@ -171,20 +171,21 @@ class Descriptor {
void *p = nullptr, int rank = maxRank,
const SubscriptValue *extent = nullptr,
ISO::CFI_attribute_t attribute = CFI_attribute_other,
- bool addendum = false);
+ bool addendum = false, unsigned allocatorIdx = kDefaultAllocator);
----------------
klausler wrote:
Please don't use `unsigned` like this in runtime interfaces; `int` is more consistent. Using `unsigned` to mean "it's not going to be negative" is common in LLVM but usually not a good idea.
https://github.com/llvm/llvm-project/pull/157731
More information about the llvm-commits
mailing list