Skip to content

Commit 3eaaf7c

Browse files
committed
[lldb][AArch64] Fix crash loading core files on 32 bit systems
#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.
1 parent f82fb06 commit 3eaaf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/Utility/RegisterFlagsDetector_arm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define HWCAP2_AFP (1ULL << 20)
2424
#define HWCAP2_SME (1ULL << 23)
2525
#define HWCAP2_EBF16 (1ULL << 32)
26-
#define HWCAP2_FPMR (1UL << 48)
26+
#define HWCAP2_FPMR (1ULL << 48)
2727

2828
using namespace lldb_private;
2929

0 commit comments

Comments
 (0)