projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a069ac
)
Fix a warning about the use of const being ignored with a cast.
author
Kevin Enderby
<enderby@apple.com>
Fri, 20 Jun 2014 18:07:34 +0000
(18:07 +0000)
committer
Kevin Enderby
<enderby@apple.com>
Fri, 20 Jun 2014 18:07:34 +0000
(18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211383
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/MachOObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/MachOObjectFile.cpp
b/lib/Object/MachOObjectFile.cpp
index 1e105d3973b79fa2229b2ef1c53a2de62fa50673..a072b0f28ca1033c178c7d82d730204cb6d2f769 100644
(file)
--- 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;
}
- c
har *P = (
char *)(Libraries[i]) + D.dylib.name;
+ c
onst char *P = (const
char *)(Libraries[i]) + D.dylib.name;
StringRef Name = StringRef(P);
StringRef Suffix;
bool isFramework;