[llvm] r211383 - Fix a warning about the use of const being ignored with a cast.
Kevin Enderby
enderby at apple.com
Fri Jun 20 11:07:34 PDT 2014
Author: enderby
Date: Fri Jun 20 13:07:34 2014
New Revision: 211383
URL: http://llvm.org/viewvc/llvm-project?rev=211383&view=rev
Log:
Fix a warning about the use of const being ignored with a cast.
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=211383&r1=211382&r2=211383&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Fri Jun 20 13:07:34 2014
@@ -1384,7 +1384,7 @@ std::error_code MachOObjectFile::getLibr
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;
More information about the llvm-commits
mailing list