Clean up to avoid compiler warnings for casting away const qualifiers.
Differential Revision: http://reviews.llvm.org/D19598 llvm-svn: 267753
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user