Skip to content

Commit e3efa73

Browse files
committed
[LLVM][Cygwin] Fix Singals compatibility with Cygwin API
1 parent 1657331 commit e3efa73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Support/Unix/Signals.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,11 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) {
847847

848848
const char *name = strrchr(dlinfo.dli_fname, '/');
849849
if (!name)
850+
#ifdef __CYGWIN__
851+
OS << format(" %-*s", width, &dlinfo.dli_fname);
852+
#else
850853
OS << format(" %-*s", width, dlinfo.dli_fname);
854+
#endif
851855
else
852856
OS << format(" %-*s", width, name + 1);
853857

0 commit comments

Comments
 (0)