[lld] r234926 - [ELF] Remove redundant type cast to `char*` before passing array to memcpy
Simon Atanasyan
simon at atanasyan.com
Tue Apr 14 11:53:09 PDT 2015
Author: atanasyan
Date: Tue Apr 14 13:53:09 2015
New Revision: 234926
URL: http://llvm.org/viewvc/llvm-project?rev=234926&view=rev
Log:
[ELF] Remove redundant type cast to `char*` before passing array to memcpy
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=234926&r1=234925&r2=234926&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Tue Apr 14 13:53:09 2015
@@ -1411,7 +1411,7 @@ public:
uint32_t bucketChainCounts[2];
bucketChainCounts[0] = _buckets.size();
bucketChainCounts[1] = _chains.size();
- std::memcpy(dest, (char *)bucketChainCounts, sizeof(bucketChainCounts));
+ std::memcpy(dest, bucketChainCounts, sizeof(bucketChainCounts));
dest += sizeof(bucketChainCounts);
// write bucket values
for (auto bi : _buckets) {
More information about the llvm-commits
mailing list