From 602941c737718bf875934f5121615eaf2596f196 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Fri, 20 Jun 2014 18:07:34 +0000 Subject: 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 --- lib/Object/MachOObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Object') 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; -- cgit v1.2.3