Skip to content

Commit 624a42a

Browse files
committed
change ABORT
1 parent 441eede commit 624a42a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/runtime/stop.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,15 @@ static void PrintBacktrace() {
174174
#else
175175

176176
// TODO: Need to implement the version for other platforms.
177-
Fortran::runtime::Terminator{}.PrintCrashArgs(
178-
"Handle the case when a backtrace is not available\n");
177+
Fortran::runtime::Terminator{}.PrintCrashArgs("backtrace is not supported.");
179178

180179
#endif
181180
}
182181

183182
[[noreturn]] void RTNAME(Abort)() {
183+
#ifdef HAVE_BACKTRACE
184184
PrintBacktrace();
185+
#endif
185186
std::abort();
186187
}
187188

0 commit comments

Comments
 (0)