[flang-commits] [flang] c4c198f - [flang][NFC] Change wording of an I/O runtime error message

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Sun Oct 30 13:37:22 PDT 2022


Author: Peter Klausler
Date: 2022-10-30T13:37:12-07:00
New Revision: c4c198f603d78ae328b517273df7ae8fb01a095c

URL: https://github.com/llvm/llvm-project/commit/c4c198f603d78ae328b517273df7ae8fb01a095c
DIFF: https://github.com/llvm/llvm-project/commit/c4c198f603d78ae328b517273df7ae8fb01a095c.diff

LOG: [flang][NFC] Change wording of an I/O runtime error message

Make a requested change to the wording of a fatal I/O error
message.

Differential Revision: https://reviews.llvm.org/D136984

Added: 
    

Modified: 
    flang/runtime/descriptor-io.h

Removed: 
    


################################################################################
diff  --git a/flang/runtime/descriptor-io.h b/flang/runtime/descriptor-io.h
index a7ee40981d06..8b2cf674f6b6 100644
--- a/flang/runtime/descriptor-io.h
+++ b/flang/runtime/descriptor-io.h
@@ -30,8 +30,8 @@ inline A &ExtractElement(IoStatementState &io, const Descriptor &descriptor,
     const SubscriptValue subscripts[]) {
   A *p{descriptor.Element<A>(subscripts)};
   if (!p) {
-    io.GetIoErrorHandler().Crash(
-        "ExtractElement: null base address or subscripts out of range");
+    io.GetIoErrorHandler().Crash("Bad address for I/O item -- null base "
+                                 "address or subscripts out of range");
   }
   return *p;
 }


        


More information about the flang-commits mailing list