Skip to content

Commit cdd2e1c

Browse files
Merge pull request #3880 from adrian-prantl/amazon-linux2
Work around build issues on Amazon Linux 2.
2 parents 6eea2a7 + 79be69f commit cdd2e1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
578578
(data_sp->GetByteSize() > (reg_data_min_size + GetSVEHeaderSize()));
579579

580580
if (contains_sve_reg_data) {
581+
#if LLDB_HAVE_USER_SVE_HEADER
581582
// We have SVE register data first write SVE header.
582583
::memcpy(GetSVEHeader(), src, GetSVEHeaderSize());
583584
if (!sve_vl_valid(m_sve_header.vl)) {
@@ -609,6 +610,7 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
609610
m_sve_buffer_is_valid = true;
610611
error = WriteAllSVE();
611612
src += GetSVEBufferSize();
613+
#endif
612614
} else {
613615
::memcpy(GetFPRBuffer(), src, GetFPRSize());
614616
m_fpu_is_valid = true;

0 commit comments

Comments
 (0)