@@ -118,7 +118,7 @@ static RT_API_ATTRS void Compare(Descriptor &result, const Descriptor &x,
118118 for (int j{0 }; j < rank; ++j) {
119119 result.GetDimension (j).SetBounds (1 , ub[j]);
120120 }
121- if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
121+ if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
122122 terminator.Crash (" Compare: could not allocate storage for result" );
123123 }
124124 std::size_t xChars{x.ElementBytes () >> shift<CHAR>};
@@ -173,7 +173,7 @@ static RT_API_ATTRS void AdjustLRHelper(Descriptor &result,
173173 for (int j{0 }; j < rank; ++j) {
174174 result.GetDimension (j).SetBounds (1 , ub[j]);
175175 }
176- if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
176+ if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
177177 terminator.Crash (" ADJUSTL/R: could not allocate storage for result" );
178178 }
179179 for (SubscriptValue resultAt{0 }; elements-- > 0 ;
@@ -227,7 +227,7 @@ static RT_API_ATTRS void LenTrim(Descriptor &result, const Descriptor &string,
227227 for (int j{0 }; j < rank; ++j) {
228228 result.GetDimension (j).SetBounds (1 , ub[j]);
229229 }
230- if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
230+ if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
231231 terminator.Crash (" LEN_TRIM: could not allocate storage for result" );
232232 }
233233 std::size_t stringElementChars{string.ElementBytes () >> shift<CHAR>};
@@ -427,7 +427,7 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result,
427427 for (int j{0 }; j < rank; ++j) {
428428 result.GetDimension (j).SetBounds (1 , ub[j]);
429429 }
430- if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
430+ if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
431431 terminator.Crash (" SCAN/VERIFY: could not allocate storage for result" );
432432 }
433433 std::size_t stringElementChars{string.ElementBytes () >> shift<CHAR>};
@@ -530,7 +530,8 @@ static RT_API_ATTRS void MaxMinHelper(Descriptor &accumulator,
530530 for (int j{0 }; j < rank; ++j) {
531531 accumulator.GetDimension (j).SetBounds (1 , ub[j]);
532532 }
533- RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
533+ RUNTIME_CHECK (
534+ terminator, accumulator.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
534535 }
535536 for (CHAR *result{accumulator.OffsetElement <CHAR>()}; elements-- > 0 ;
536537 accumData += accumChars, result += chars, x.IncrementSubscripts (xAt)) {
@@ -606,7 +607,7 @@ void RTDEF(CharacterConcatenate)(Descriptor &accumulator,
606607 for (int j{0 }; j < rank; ++j) {
607608 accumulator.GetDimension (j).SetBounds (1 , ub[j]);
608609 }
609- if (accumulator.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
610+ if (accumulator.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
610611 terminator.Crash (
611612 " CharacterConcatenate: could not allocate storage for result" );
612613 }
@@ -629,7 +630,8 @@ void RTDEF(CharacterConcatenateScalar1)(
629630 accumulator.set_base_addr (nullptr );
630631 std::size_t oldLen{accumulator.ElementBytes ()};
631632 accumulator.raw ().elem_len += chars;
632- RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
633+ RUNTIME_CHECK (
634+ terminator, accumulator.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
633635 std::memcpy (accumulator.OffsetElement <char >(oldLen), from, chars);
634636 FreeMemory (old);
635637}
@@ -831,7 +833,7 @@ void RTDEF(Repeat)(Descriptor &result, const Descriptor &string,
831833 std::size_t origBytes{string.ElementBytes ()};
832834 result.Establish (string.type (), origBytes * ncopies, nullptr , 0 , nullptr ,
833835 CFI_attribute_allocatable);
834- if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
836+ if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
835837 terminator.Crash (" REPEAT could not allocate storage for result" );
836838 }
837839 const char *from{string.OffsetElement ()};
@@ -865,7 +867,7 @@ void RTDEF(Trim)(Descriptor &result, const Descriptor &string,
865867 }
866868 result.Establish (string.type (), resultBytes, nullptr , 0 , nullptr ,
867869 CFI_attribute_allocatable);
868- RUNTIME_CHECK (terminator, result.Allocate (kNoAsyncId ) == CFI_SUCCESS);
870+ RUNTIME_CHECK (terminator, result.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
869871 std::memcpy (result.OffsetElement (), string.OffsetElement (), resultBytes);
870872}
871873
0 commit comments