@@ -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 (kNoAsyncObject ) != CFI_SUCCESS) {
121+ if (result.Allocate (kNoAsyncId ) != 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 (kNoAsyncObject ) != CFI_SUCCESS) {
176+ if (result.Allocate (kNoAsyncId ) != 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 (kNoAsyncObject ) != CFI_SUCCESS) {
230+ if (result.Allocate (kNoAsyncId ) != 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 (kNoAsyncObject ) != CFI_SUCCESS) {
430+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
431431 terminator.Crash (" SCAN/VERIFY: could not allocate storage for result" );
432432 }
433433 std::size_t stringElementChars{string.ElementBytes () >> shift<CHAR>};
@@ -530,8 +530,7 @@ 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 (
534- terminator, accumulator.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
533+ RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
535534 }
536535 for (CHAR *result{accumulator.OffsetElement <CHAR>()}; elements-- > 0 ;
537536 accumData += accumChars, result += chars, x.IncrementSubscripts (xAt)) {
@@ -607,7 +606,7 @@ void RTDEF(CharacterConcatenate)(Descriptor &accumulator,
607606 for (int j{0 }; j < rank; ++j) {
608607 accumulator.GetDimension (j).SetBounds (1 , ub[j]);
609608 }
610- if (accumulator.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
609+ if (accumulator.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
611610 terminator.Crash (
612611 " CharacterConcatenate: could not allocate storage for result" );
613612 }
@@ -630,8 +629,7 @@ void RTDEF(CharacterConcatenateScalar1)(
630629 accumulator.set_base_addr (nullptr );
631630 std::size_t oldLen{accumulator.ElementBytes ()};
632631 accumulator.raw ().elem_len += chars;
633- RUNTIME_CHECK (
634- terminator, accumulator.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
632+ RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
635633 std::memcpy (accumulator.OffsetElement <char >(oldLen), from, chars);
636634 FreeMemory (old);
637635}
@@ -833,7 +831,7 @@ void RTDEF(Repeat)(Descriptor &result, const Descriptor &string,
833831 std::size_t origBytes{string.ElementBytes ()};
834832 result.Establish (string.type (), origBytes * ncopies, nullptr , 0 , nullptr ,
835833 CFI_attribute_allocatable);
836- if (result.Allocate (kNoAsyncObject ) != CFI_SUCCESS) {
834+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
837835 terminator.Crash (" REPEAT could not allocate storage for result" );
838836 }
839837 const char *from{string.OffsetElement ()};
@@ -867,7 +865,7 @@ void RTDEF(Trim)(Descriptor &result, const Descriptor &string,
867865 }
868866 result.Establish (string.type (), resultBytes, nullptr , 0 , nullptr ,
869867 CFI_attribute_allocatable);
870- RUNTIME_CHECK (terminator, result.Allocate (kNoAsyncObject ) == CFI_SUCCESS);
868+ RUNTIME_CHECK (terminator, result.Allocate (kNoAsyncId ) == CFI_SUCCESS);
871869 std::memcpy (result.OffsetElement (), string.OffsetElement (), resultBytes);
872870}
873871
0 commit comments