diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-27 05:21:55 +0300 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-04-27 05:21:55 +0300 |
commit | a49aa027c1228cbfa6db671aa28eda1956b215d9 (patch) | |
tree | 1102577d3851c9de72d0ac2e6be6de3e61c278b7 /libcxxabi/src/cxa_personality.cpp | |
parent | 91aef804b1932cba176e1d4f900cbc9dd9316a0e (diff) |
libc++abi: clear up some -Wqual-cast warnings
Cleans up cast qualifier warnings identified by GCC 4.9.2.
llvm-svn: 235829
Diffstat (limited to 'libcxxabi/src/cxa_personality.cpp')
-rw-r--r-- | libcxxabi/src/cxa_personality.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp index 281e25760d95..a0883c17a991 100644 --- a/libcxxabi/src/cxa_personality.cpp +++ b/libcxxabi/src/cxa_personality.cpp @@ -249,8 +249,7 @@ readEncodedPointer(const uint8_t** data, uint8_t encoding) switch (encoding & 0x0F) { case DW_EH_PE_absptr: - result = *((uintptr_t*)p); - p += sizeof(uintptr_t); + result = readPointerHelper<uintptr_t>(p); break; case DW_EH_PE_uleb128: result = readULEB128(&p); |