Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a2bec69

Browse files
committed
Silencing a -Wcast-qual warning. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216068 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 0e9c68e commit a2bec69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/LTO/LTOModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ LTOModule *LTOModule::createFromOpenFileSlice(int fd, const char *path,
104104
LTOModule *LTOModule::createFromBuffer(const void *mem, size_t length,
105105
TargetOptions options,
106106
std::string &errMsg, StringRef path) {
107-
StringRef Data((char *)mem, length);
107+
StringRef Data((const char *)mem, length);
108108
MemoryBufferRef Buffer(Data, path);
109109
return makeLTOModule(Buffer, options, errMsg);
110110
}

0 commit comments

Comments
 (0)