Skip to content

Commit ea88634

Browse files
[Support] Remove an unnecessary cast (NFC) (#146810)
We don't need to cast std::string to std::string.
1 parent 0afbf17 commit ea88634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Signals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static bool printSymbolizedStackTrace(StringRef Argv0, void **StackTrace,
277277
// If we don't know argv0 or the address of main() at this point, try
278278
// to guess it anyway (it's possible on some platforms).
279279
std::string MainExecutableName =
280-
sys::fs::exists(Argv0) ? (std::string)std::string(Argv0)
280+
sys::fs::exists(Argv0) ? std::string(Argv0)
281281
: sys::fs::getMainExecutable(nullptr, nullptr);
282282

283283
auto SymbolizedAddressesOpt = collectAddressSymbols(

0 commit comments

Comments
 (0)