[flang-commits] [flang] [flang] Add ability to have special allocator for descriptor data (PR #100690)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Mon Jul 29 09:26:22 PDT 2024
================
@@ -155,6 +162,18 @@ typedef struct CFI_cdesc_t {
#else
CFI_dim_t dim[]; /* must appear last */
#endif
+
+#ifdef __cplusplus
+ RT_API_ATTRS inline bool HasAddendum() const {
+ return extra & _CFI_ADDENDUM_FLAG;
+ }
+ RT_API_ATTRS inline void SetHasAddendum() {
+ extra = extra | _CFI_ADDENDUM_FLAG;
----------------
clementval wrote:
```suggestion
extra |= _CFI_ADDENDUM_FLAG;
```
https://github.com/llvm/llvm-project/pull/100690
More information about the flang-commits
mailing list