Skip to content

Commit 760a114

Browse files
authored
[flang][NFC] Revise crash msg for GeneralCharFunc (#162292)
1 parent cb53a2d commit 760a114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang-rt/lib/runtime/character.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result,
428428
result.GetDimension(j).SetBounds(1, ub[j]);
429429
}
430430
if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
431-
terminator.Crash("SCAN/VERIFY: could not allocate storage for result");
431+
terminator.Crash(
432+
"INDEX/SCAN/VERIFY: could not allocate storage for result");
432433
}
433434
std::size_t stringElementChars{string.ElementBytes() >> shift<CHAR>};
434435
std::size_t argElementChars{arg.ElementBytes() >> shift<CHAR>};

0 commit comments

Comments
 (0)