[PATCH] D118509: [flang] Implement a runtime routine to report fatal errors with source position
Pete Steinfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 28 15:45:01 PST 2022
PeteSteinfeld added inline comments.
================
Comment at: flang/runtime/stop.cpp:149
+ const char *message, const char *source, int line) {
+ Fortran::runtime::Terminator terminator{source, line};
+ terminator.Crash(message);
----------------
klausler wrote:
> Could be one line with the use of an anonymous Terminator:
>
> Fortran::runtime::Terminator{source, line}.Crash(message);
Thanks! I'll change it.
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