Remove unneeded const_cast in readPointerHelper. Pointed out by jroelofs

llvm-svn: 231852
This commit is contained in:
Eric Fiselier 2015-03-10 21:32:53 +00:00
parent 2954c67e4b
commit fe2f1f095f
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ namespace
template <class AsType>
uintptr_t readPointerHelper(const uint8_t*& p) {
AsType value;
memcpy(&value, const_cast<uint8_t*>(p), sizeof(AsType));
memcpy(&value, p, sizeof(AsType));
p += sizeof(AsType);
return static_cast<uintptr_t>(value);
}