diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -554,7 +554,9 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) { // FIXME: Handle "Depth" parameter to print stack trace upto specified Depth + RegisterHandler(); LocalPrintStackTrace(OS, nullptr); + LeaveCriticalSection(&CriticalSection); } void llvm::sys::SetInterruptFunction(void (*IF)()) {