[libunwind] r366701 - [libunwind][ARM] Fix types in _Unwind_VRS_Get.
Mikhail Maltsev via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 09:43:04 PDT 2019
Author: miyuki
Date: Mon Jul 22 09:43:03 2019
New Revision: 366701
URL: http://llvm.org/viewvc/llvm-project?rev=366701&view=rev
Log:
[libunwind][ARM] Fix types in _Unwind_VRS_Get.
This is a small fix for https://reviews.llvm.org/D64996. The types of
w0 and w1 in _Unwind_VRS_Get must be uint64_t, not uint32_t.
Committing as obvious.
Modified:
libunwind/trunk/src/Unwind-EHABI.cpp
Modified: libunwind/trunk/src/Unwind-EHABI.cpp
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/Unwind-EHABI.cpp?rev=366701&r1=366700&r2=366701&view=diff
==============================================================================
--- libunwind/trunk/src/Unwind-EHABI.cpp (original)
+++ libunwind/trunk/src/Unwind-EHABI.cpp Mon Jul 22 09:43:03 2019
@@ -941,8 +941,8 @@ _Unwind_VRS_Pop(_Unwind_Context *context
// format 1", which is equivalent to FSTMD + a padding word.
for (uint32_t i = first; i < end; ++i) {
// SP is only 32-bit aligned so don't copy 64-bit at a time.
- uint32_t w0 = *sp++;
- uint32_t w1 = *sp++;
+ uint64_t w0 = *sp++;
+ uint64_t w1 = *sp++;
#ifdef __LITTLE_ENDIAN__
uint64_t value = (w1 << 32) | w0;
#else
More information about the cfe-commits
mailing list