Commit bdb73c27 authored by Tom Stellard's avatar Tom Stellard
Browse files

Merging r231852:

------------------------------------------------------------------------
r231852 | ericwf | 2015-03-10 14:32:53 -0700 (Tue, 10 Mar 2015) | 1 line

Remove unneeded const_cast in readPointerHelper. Pointed out by jroelofs
------------------------------------------------------------------------

llvm-svn: 236861
parent 84bbfdce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}