Silencing a -Wcast-qual warning. NFC.

llvm-svn: 216068
This commit is contained in:
Aaron Ballman 2014-08-20 12:54:13 +00:00
parent bf6ee22113
commit 474972585a
1 changed files with 1 additions and 1 deletions

View File

@ -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((const char *)mem, length);
MemoryBufferRef Buffer(Data, path);
return makeLTOModule(Buffer, options, errMsg);
}