[PATCH] D118509: [flang] Implement a runtime routine to report fatal errors with source position

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 28 13:44:04 PST 2022


klausler accepted this revision.
klausler added inline comments.
This revision is now accepted and ready to land.


================
Comment at: flang/runtime/stop.cpp:149
+    const char *message, const char *source, int line) {
+  Fortran::runtime::Terminator terminator{source, line};
+  terminator.Crash(message);
----------------
Could be one line with the use of an anonymous Terminator:

  Fortran::runtime::Terminator{source, line}.Crash(message);


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118509/new/

https://reviews.llvm.org/D118509



More information about the llvm-commits mailing list