Fix a warning about the use of const being ignored with a cast.

llvm-svn: 211383
This commit is contained in:
Kevin Enderby 2014-06-20 18:07:34 +00:00
parent dbc8e1ae28
commit 4eff6cdd2e
1 changed files with 1 additions and 1 deletions

View File

@ -1384,7 +1384,7 @@ std::error_code MachOObjectFile::getLibraryShortNameByIndex(unsigned Index,
LibrariesShortNames.push_back(StringRef());
continue;
}
char *P = (char *)(Libraries[i]) + D.dylib.name;
const char *P = (const char *)(Libraries[i]) + D.dylib.name;
StringRef Name = StringRef(P);
StringRef Suffix;
bool isFramework;