summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2016-04-27 18:35:02 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2016-04-27 18:35:02 +0000
commit41beee6575f98a3190d072583788d39cbdbe25f2 (patch)
treea7090ea6097f6c7a35ee46b04e0e6426dc77ac35 /llvm/lib/Bitcode
parent03e1647d19647e6c45688f791e26d7a09b62577c (diff)
downloadbcm5719-llvm-41beee6575f98a3190d072583788d39cbdbe25f2.tar.gz
bcm5719-llvm-41beee6575f98a3190d072583788d39cbdbe25f2.zip
Clean up to avoid compiler warnings for casting away const qualifiers.
Differential Revision: http://reviews.llvm.org/D19598 llvm-svn: 267753
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 6764e779e0a..9fb5d66a5ac 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -3337,7 +3337,7 @@ void ModuleBitcodeWriter::writeModuleHash(size_t BlockStartPos) {
// Emit the module's hash.
// MODULE_CODE_HASH: [5*i32]
SHA1 Hasher;
- Hasher.update(ArrayRef<uint8_t>((uint8_t *)&(Buffer)[BlockStartPos],
+ Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&(Buffer)[BlockStartPos],
Buffer.size() - BlockStartPos));
auto Hash = Hasher.result();
SmallVector<uint64_t, 20> Vals;
OpenPOWER on IntegriCloud