Skip to content

Commit 37a1fc5

Browse files
[Support] Remove an unnecessary cast (NFC) (#157312)
dli_fname is of type const char *.
1 parent bbd48fb commit 37a1fc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/Unix/Signals.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,7 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) {
883883
} else {
884884
const char *name = strrchr(dlinfo.dli_fname, '/');
885885
if (!name)
886-
OS << format(" %-*s", width,
887-
static_cast<const char *>(dlinfo.dli_fname));
886+
OS << format(" %-*s", width, dlinfo.dli_fname);
888887
else
889888
OS << format(" %-*s", width, name + 1);
890889
}

0 commit comments

Comments
 (0)