@@ -117,7 +117,7 @@ static RT_API_ATTRS void Compare(Descriptor &result, const Descriptor &x,
117117 for (int j{0 }; j < rank; ++j) {
118118 result.GetDimension (j).SetBounds (1 , ub[j]);
119119 }
120- if (result.Allocate () != CFI_SUCCESS) {
120+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
121121 terminator.Crash (" Compare: could not allocate storage for result" );
122122 }
123123 std::size_t xChars{x.ElementBytes () >> shift<CHAR>};
@@ -172,7 +172,7 @@ static RT_API_ATTRS void AdjustLRHelper(Descriptor &result,
172172 for (int j{0 }; j < rank; ++j) {
173173 result.GetDimension (j).SetBounds (1 , ub[j]);
174174 }
175- if (result.Allocate () != CFI_SUCCESS) {
175+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
176176 terminator.Crash (" ADJUSTL/R: could not allocate storage for result" );
177177 }
178178 for (SubscriptValue resultAt{0 }; elements-- > 0 ;
@@ -226,7 +226,7 @@ static RT_API_ATTRS void LenTrim(Descriptor &result, const Descriptor &string,
226226 for (int j{0 }; j < rank; ++j) {
227227 result.GetDimension (j).SetBounds (1 , ub[j]);
228228 }
229- if (result.Allocate () != CFI_SUCCESS) {
229+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
230230 terminator.Crash (" LEN_TRIM: could not allocate storage for result" );
231231 }
232232 std::size_t stringElementChars{string.ElementBytes () >> shift<CHAR>};
@@ -408,7 +408,7 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result,
408408 for (int j{0 }; j < rank; ++j) {
409409 result.GetDimension (j).SetBounds (1 , ub[j]);
410410 }
411- if (result.Allocate () != CFI_SUCCESS) {
411+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
412412 terminator.Crash (" SCAN/VERIFY: could not allocate storage for result" );
413413 }
414414 std::size_t stringElementChars{string.ElementBytes () >> shift<CHAR>};
@@ -511,7 +511,7 @@ static RT_API_ATTRS void MaxMinHelper(Descriptor &accumulator,
511511 for (int j{0 }; j < rank; ++j) {
512512 accumulator.GetDimension (j).SetBounds (1 , ub[j]);
513513 }
514- RUNTIME_CHECK (terminator, accumulator.Allocate () == CFI_SUCCESS);
514+ RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
515515 }
516516 for (CHAR *result{accumulator.OffsetElement <CHAR>()}; elements-- > 0 ;
517517 accumData += accumChars, result += chars, x.IncrementSubscripts (xAt)) {
@@ -587,7 +587,7 @@ void RTDEF(CharacterConcatenate)(Descriptor &accumulator,
587587 for (int j{0 }; j < rank; ++j) {
588588 accumulator.GetDimension (j).SetBounds (1 , ub[j]);
589589 }
590- if (accumulator.Allocate () != CFI_SUCCESS) {
590+ if (accumulator.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
591591 terminator.Crash (
592592 " CharacterConcatenate: could not allocate storage for result" );
593593 }
@@ -610,7 +610,7 @@ void RTDEF(CharacterConcatenateScalar1)(
610610 accumulator.set_base_addr (nullptr );
611611 std::size_t oldLen{accumulator.ElementBytes ()};
612612 accumulator.raw ().elem_len += chars;
613- RUNTIME_CHECK (terminator, accumulator.Allocate () == CFI_SUCCESS);
613+ RUNTIME_CHECK (terminator, accumulator.Allocate (kNoAsyncId ) == CFI_SUCCESS);
614614 std::memcpy (accumulator.OffsetElement <char >(oldLen), from, chars);
615615 FreeMemory (old);
616616}
@@ -812,7 +812,7 @@ void RTDEF(Repeat)(Descriptor &result, const Descriptor &string,
812812 std::size_t origBytes{string.ElementBytes ()};
813813 result.Establish (string.type (), origBytes * ncopies, nullptr , 0 , nullptr ,
814814 CFI_attribute_allocatable);
815- if (result.Allocate () != CFI_SUCCESS) {
815+ if (result.Allocate (kNoAsyncId ) != CFI_SUCCESS) {
816816 terminator.Crash (" REPEAT could not allocate storage for result" );
817817 }
818818 const char *from{string.OffsetElement ()};
@@ -846,7 +846,7 @@ void RTDEF(Trim)(Descriptor &result, const Descriptor &string,
846846 }
847847 result.Establish (string.type (), resultBytes, nullptr , 0 , nullptr ,
848848 CFI_attribute_allocatable);
849- RUNTIME_CHECK (terminator, result.Allocate () == CFI_SUCCESS);
849+ RUNTIME_CHECK (terminator, result.Allocate (kNoAsyncId ) == CFI_SUCCESS);
850850 std::memcpy (result.OffsetElement (), string.OffsetElement (), resultBytes);
851851}
852852
0 commit comments