Skip to content

Commit 2390fc6

Browse files
committed
[Basic] Always dump message to stderr in _abortWithMessage
This allows it to be seen while e.g attached with a debugger.
1 parent 8b4740f commit 2390fc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Basic/Assertions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ static void _abortWithMessage(llvm::StringRef message) {
123123
// crash reporter.
124124
PrettyStackTraceMultilineString trace(message);
125125

126-
// If pretty backtracing is disabled, fall back to dumping to stderr.
127-
if (!llvm::SavePrettyStackState())
128-
llvm::errs() << message << '\n';
126+
// Also dump to stderr in case pretty backtracing is disabled, and to
127+
// allow the message to be seen while attached with a debugger.
128+
llvm::errs() << message << '\n';
129129

130130
abort();
131131
}

0 commit comments

Comments
 (0)