Skip to content

Commit e033565

Browse files
committed
Add SetAllocIdx
1 parent 247e91b commit e033565

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/include/flang/ISO_Fortran_binding.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ typedef struct CFI_cdesc_t {
173173
RT_API_ATTRS inline int GetAllocIdx() const {
174174
return ((int)extra >> _CFI_ADDENDUM_BITS);
175175
}
176+
RT_API_ATTRS inline void SetAllocIdx(int pos) {
177+
extra = extra | (pos << _CFI_ADDENDUM_BITS);
178+
}
176179
#endif
177180
} CFI_cdesc_t;
178181

0 commit comments

Comments
 (0)