From: Aaron Ballman Date: Wed, 20 Aug 2014 12:54:13 +0000 (+0000) Subject: Silencing a -Wcast-qual warning. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2bec69360e1e01f13acbd7946fae2c6adf3346f;p=llvm Silencing a -Wcast-qual warning. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216068 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index 083af9e552e..d9bc9394d46 100644 --- 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((const char *)mem, length); MemoryBufferRef Buffer(Data, path); return makeLTOModule(Buffer, options, errMsg); }