summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-06-20 18:07:34 +0000
committerKevin Enderby <enderby@apple.com>2014-06-20 18:07:34 +0000
commit4eff6cdd2e25a0eab795ca74a4db896f225fa7f5 (patch)
treeb0cca0812ea2c8c2c761d12f0132053d8d5b419c /llvm/lib/Object/MachOObjectFile.cpp
parentdbc8e1ae284ef26e06878b410fcf9e1e166774c2 (diff)
downloadbcm5719-llvm-4eff6cdd2e25a0eab795ca74a4db896f225fa7f5.tar.gz
bcm5719-llvm-4eff6cdd2e25a0eab795ca74a4db896f225fa7f5.zip
Fix a warning about the use of const being ignored with a cast.
llvm-svn: 211383
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 1e105d3973b..a072b0f28ca 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -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;
OpenPOWER on IntegriCloud