unwind: use explicit memcpy for register saving
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Feb 2015 04:25:05 +0000 (04:25 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Feb 2015 04:25:05 +0000 (04:25 +0000)
commit3db633ab810d4ef3697b830dc23814118b2e7c52
tree3b670a2cc820b06553cddacc2039ba17f2095b1e
parenta6b32ccec40567846ac6a30e20058bb76bab55d9
unwind: use explicit memcpy for register saving

Convert the register saving code to use an explicit memcpy rather than the
implicit memcpy from the assignment.  This avoids warnings from -Wcast-qual on
GCC and makes the code more explicit.  Furthermore, use sizeof to calculate the
offsets rather than adding magic numbers, improving legibility of the code.
NFC.

llvm-svn: 228904
libcxxabi/src/Unwind/Registers.hpp