Skip to content

Commit

Permalink
[lldb][AArch64] Fix crash loading core files on 32 bit systems
Browse files Browse the repository at this point in the history
llvm#109934 added FPMR which
uses a bit in hwcaps greater than 31. So it marked the 1 with UL
which is fine on 64 bit systems but for 32 bit UL is 4 bytes.

Use ULL so we aren't invoking undefined behaviour.
  • Loading branch information
DavidSpickett committed Sep 26, 2024
1 parent f82fb06 commit 3eaaf7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define HWCAP2_AFP (1ULL << 20)
#define HWCAP2_SME (1ULL << 23)
#define HWCAP2_EBF16 (1ULL << 32)
#define HWCAP2_FPMR (1UL << 48)
#define HWCAP2_FPMR (1ULL << 48)

using namespace lldb_private;

Expand Down

0 comments on commit 3eaaf7c

Please sign in to comment.