[libcxx-commits] [PATCH] D119353: [libunwind] Avoid a warning in 32 bit builds. NFC.
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 9 09:38:36 PST 2022
mstorsjo created this revision.
mstorsjo added a reviewer: MaskRay.
Herald added subscribers: fedor.sergeev, jyknight.
Herald added a project: libunwind.
Herald added a reviewer: libunwind.
mstorsjo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The warning was introduced with the recently merged SPARCv9
support. The cast matches the existing surrounding cases.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119353
Files:
libunwind/src/DwarfInstructions.hpp
Index: libunwind/src/DwarfInstructions.hpp
===================================================================
--- libunwind/src/DwarfInstructions.hpp
+++ libunwind/src/DwarfInstructions.hpp
@@ -91,8 +91,8 @@
return (pint_t)addressSpace.getRegister(cfa + (pint_t)savedReg.value);
case CFI_Parser<A>::kRegisterInCFADecrypt: // sparc64 specific
- return addressSpace.getP(cfa + (pint_t)savedReg.value) ^
- getSparcWCookie(registers, 0);
+ return (pint_t)(addressSpace.getP(cfa + (pint_t)savedReg.value) ^
+ getSparcWCookie(registers, 0));
case CFI_Parser<A>::kRegisterAtExpression:
return (pint_t)addressSpace.getRegister(evaluateExpression(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119353.407192.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220209/65c66bf7/attachment.bin>
More information about the libcxx-commits
mailing list