[llvm] r216068 - Silencing a -Wcast-qual warning. NFC.

Aaron Ballman aaron at aaronballman.com
Wed Aug 20 05:54:13 PDT 2014


Author: aaronballman
Date: Wed Aug 20 07:54:13 2014
New Revision: 216068

URL: http://llvm.org/viewvc/llvm-project?rev=216068&view=rev
Log:
Silencing a -Wcast-qual warning. NFC.

Modified:
    llvm/trunk/lib/LTO/LTOModule.cpp

Modified: llvm/trunk/lib/LTO/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOModule.cpp?rev=216068&r1=216067&r2=216068&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOModule.cpp (original)
+++ llvm/trunk/lib/LTO/LTOModule.cpp Wed Aug 20 07:54:13 2014
@@ -104,7 +104,7 @@ LTOModule *LTOModule::createFromOpenFile
 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);
 }





More information about the llvm-commits mailing list