Target: fix -Wcast-qual warning

We were unnecessarily stripping the const qualifier on the temporary variable.
Restore the constness to avoid the warning.  NFC.

llvm-svn: 258547
This commit is contained in:
Saleem Abdulrasool 2016-01-22 20:26:32 +00:00
parent 27ea26b7c0
commit 79e6749da3
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ UnixSignals::GetShortName(ConstString name) const
{
if (name)
{
char* signame = (char*)(name.AsCString());
const char* signame = name.AsCString();
return ConstString(signame + 3); // Remove "SIG" from name
}
return name;