Skip to content

Commit

Permalink
libunwind: Fix a -Wunused-but-set-variable warning when building for …
Browse files Browse the repository at this point in the history
…32-bit arm
  • Loading branch information
bsdjhb committed Sep 8, 2023
1 parent 2f2dd31 commit 2326718
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libunwind/src/Unwind-EHABI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ _Unwind_VRS_Interpret(_Unwind_Context *context, const uint32_t *data,
size_t offset, size_t len) {
bool wrotePC = false;
bool finish = false;
#ifdef __ARM_FEATURE_PAUTH
bool hasReturnAddrAuthCode = false;
#endif
while (offset < len && !finish) {
uint8_t byte = getByte(data, offset++);
if ((byte & 0x80) == 0) {
Expand Down Expand Up @@ -348,10 +350,12 @@ _Unwind_VRS_Interpret(_Unwind_Context *context, const uint32_t *data,
break;
}
case 0xb4:
#ifdef __ARM_FEATURE_PAUTH
hasReturnAddrAuthCode = true;
_Unwind_VRS_Pop(context, _UVRSC_PSEUDO,
0 /* Return Address Auth Code */, _UVRSD_UINT32);
break;
#endif
case 0xb5:
case 0xb6:
case 0xb7:
Expand Down

0 comments on commit 2326718

Please sign in to comment.