mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Fix a warning about the use of const being ignored with a cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a069ac1f3
commit
602941c737
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user