diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-08-20 12:54:13 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-08-20 12:54:13 +0000 |
commit | 474972585a1f4328c9f3138c88365a43c11556c0 (patch) | |
tree | 4fb265e58ca73a6a4fbccb07d28f65737ccfea85 | |
parent | bf6ee22113f9003aa46c9895e59dfd66204351c5 (diff) | |
download | bcm5719-llvm-474972585a1f4328c9f3138c88365a43c11556c0.tar.gz bcm5719-llvm-474972585a1f4328c9f3138c88365a43c11556c0.zip |
Silencing a -Wcast-qual warning. NFC.
llvm-svn: 216068
-rw-r--r-- | llvm/lib/LTO/LTOModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOModule.cpp b/llvm/lib/LTO/LTOModule.cpp index 083af9e552e..d9bc9394d46 100644 --- a/llvm/lib/LTO/LTOModule.cpp +++ b/llvm/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); } |