[llvm] [flang][NFC] Revise crash msg for GeneralCharFunc (PR #162292)

Connector Switch via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 07:20:45 PDT 2025


https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/162292

None

>From f3f9c22fb303b63f8ead7bbd60c2bf2a1de3578d Mon Sep 17 00:00:00 2001
From: c8ef <c8ef at outlook.com>
Date: Tue, 7 Oct 2025 22:19:52 +0800
Subject: [PATCH] [flang] revise crash msg for GeneralCharFunc

---
 flang-rt/lib/runtime/character.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/flang-rt/lib/runtime/character.cpp b/flang-rt/lib/runtime/character.cpp
index 0f9f419ff0b7b..c9ac55736d427 100644
--- a/flang-rt/lib/runtime/character.cpp
+++ b/flang-rt/lib/runtime/character.cpp
@@ -428,7 +428,8 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result,
     result.GetDimension(j).SetBounds(1, ub[j]);
   }
   if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
-    terminator.Crash("SCAN/VERIFY: could not allocate storage for result");
+    terminator.Crash(
+        "INDEX/SCAN/VERIFY: could not allocate storage for result");
   }
   std::size_t stringElementChars{string.ElementBytes() >> shift<CHAR>};
   std::size_t argElementChars{arg.ElementBytes() >> shift<CHAR>};



More information about the llvm-commits mailing list