diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-03-10 21:32:53 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-03-10 21:32:53 +0000 |
commit | fdd39fd838828bba84c4f7ad620207ae0d734ad5 (patch) | |
tree | ece9a8351210247726569fb7c6c9e2d07d9a5447 /src/cxa_personality.cpp | |
parent | 89ea9ad0b0a48a9b9fccf6de81bdca1861960855 (diff) |
Remove unneeded const_cast in readPointerHelper. Pointed out by jroelofs
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@231852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_personality.cpp')
-rw-r--r-- | src/cxa_personality.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxa_personality.cpp b/src/cxa_personality.cpp index 24838f4..281e257 100644 --- a/src/cxa_personality.cpp +++ b/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); } |