From 4eff6cdd2e25a0eab795ca74a4db896f225fa7f5 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Fri, 20 Jun 2014 18:07:34 +0000 Subject: [PATCH] Fix a warning about the use of const being ignored with a cast. llvm-svn: 211383 --- llvm/lib/Object/MachOObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 1e105d3..a072b0f 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; -- 2.7.4