summaryrefslogtreecommitdiff
path: root/lib/Object
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
commit602941c737718bf875934f5121615eaf2596f196 (patch)
tree2e5e0927365af6ce9cfc66cca45631d5d5e4cb61 /lib/Object
parent2a069ac1f392699388772f69a6528963c29a6bf6 (diff)
downloadllvm-602941c737718bf875934f5121615eaf2596f196.tar.gz
llvm-602941c737718bf875934f5121615eaf2596f196.tar.bz2
llvm-602941c737718bf875934f5121615eaf2596f196.tar.xz
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
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index 1e105d3973..a072b0f28c 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/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;