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:
0e9c68e
)
Silencing a -Wcast-qual warning. NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Wed, 20 Aug 2014 12:54:13 +0000
(12:54 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Wed, 20 Aug 2014 12:54:13 +0000
(12:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216068
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/LTO/LTOModule.cpp
patch
|
blob
|
history
diff --git
a/lib/LTO/LTOModule.cpp
b/lib/LTO/LTOModule.cpp
index 083af9e552ed923b9c23b1a1291b1a496c5f8926..d9bc9394d4652f6e7454c1cbd612847a6ca34b70 100644
(file)
--- a/
lib/LTO/LTOModule.cpp
+++ b/
lib/LTO/LTOModule.cpp
@@
-104,7
+104,7
@@
LTOModule *LTOModule::createFromOpenFileSlice(int fd, const char *path,
LTOModule *LTOModule::createFromBuffer(const void *mem, size_t length,
TargetOptions options,
std::string &errMsg, StringRef path) {
- StringRef Data((char *)mem, length);
+ StringRef Data((c
onst c
har *)mem, length);
MemoryBufferRef Buffer(Data, path);
return makeLTOModule(Buffer, options, errMsg);
}