diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-05-08 14:59:40 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-05-08 14:59:40 +0000 |
commit | bdb73c27fa6e26e6f431ebde248ff0eb5b2c2a2f (patch) | |
tree | c3ccd6971f1c1d9e75aa4c3c20914dc13e0f13ec | |
parent | 84bbfdced89ed5deb30a16a579004af454f80433 (diff) | |
download | llvm-bdb73c27fa6e26e6f431ebde248ff0eb5b2c2a2f.zip llvm-bdb73c27fa6e26e6f431ebde248ff0eb5b2c2a2f.tar.gz llvm-bdb73c27fa6e26e6f431ebde248ff0eb5b2c2a2f.tar.bz2 |
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
-rw-r--r-- | libcxxabi/src/cxa_personality.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp index 5a13323..0e6ea68 100644 --- a/libcxxabi/src/cxa_personality.cpp +++ b/libcxxabi/src/cxa_personality.cpp @@ -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); } |