diff options
author | David Spickett <david.spickett@linaro.org> | 2023-07-19 09:19:13 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-07-19 16:01:42 +0000 |
commit | a96d4c1ed62fd187c21acf82b43072444ffb2084 (patch) | |
tree | ac4470bdc52d892e024bd7b94e8528b12626a010 /libunwind | |
parent | 703bf4c7996628c0ec179c6309858049bc11203f (diff) | |
download | llvm-a96d4c1ed62fd187c21acf82b43072444ffb2084.zip llvm-a96d4c1ed62fd187c21acf82b43072444ffb2084.tar.gz llvm-a96d4c1ed62fd187c21acf82b43072444ffb2084.tar.bz2 |
[libunwind] Fix build error on 32 bit Arm after -Wcast-qual was added
New warning was added in https://reviews.llvm.org/D153911 which caused:
https://buildkite.com/llvm-project/libcxx-ci/builds/28407#01896b79-2a5e-4554-ac31-2abec5a8b281
../../libunwind/src/UnwindLevel1-gcc-ext.c:172:47: error: cast from 'const unsigned int *' to 'unsigned int *' drops const qualifier [-Werror,-Wcast-qual]
ex.pr_cache.ehtp = (_Unwind_EHT_Header *) unwindInfo;
I don't see any reason there should be a const here in the first place,
so just remove it.
Reviewed By: #libunwind, michaelplatings, MaskRay
Differential Revision: https://reviews.llvm.org/D155685
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/UnwindLevel1-gcc-ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/src/UnwindLevel1-gcc-ext.c b/libunwind/src/UnwindLevel1-gcc-ext.c index efb872b..d343f4e 100644 --- a/libunwind/src/UnwindLevel1-gcc-ext.c +++ b/libunwind/src/UnwindLevel1-gcc-ext.c @@ -167,7 +167,7 @@ _Unwind_Backtrace(_Unwind_Trace_Fn callback, void *ref) { } // Update the pr_cache in the mock exception object. - const uint32_t* unwindInfo = (uint32_t *) frameInfo.unwind_info; + uint32_t *unwindInfo = (uint32_t *)frameInfo.unwind_info; ex.pr_cache.fnstart = frameInfo.start_ip; ex.pr_cache.ehtp = (_Unwind_EHT_Header *) unwindInfo; ex.pr_cache.additional= frameInfo.flags; |