[NFC] avoid AlignedCharArray in lldb

As discussed in D65249, don't use AlignedCharArray or std::aligned_storage. Just use alignas(X) char Buf[Size];. This will allow me to remove AlignedCharArray entirely, and works on the current minimum version of Visual Studio.

llvm-svn: 367275
This commit is contained in:
JF Bastien 2019-07-29 23:17:08 +00:00
parent ac8686205b
commit 268a83e39c
2 changed files with 3 additions and 3 deletions

View File

@ -424,7 +424,7 @@ bool RegisterContextDarwin_arm64::ReadRegister(const RegisterInfo *reg_info,
case fpu_v29:
case fpu_v30:
case fpu_v31:
value.SetBytes(fpu.v[reg - fpu_v0].bytes.buffer, reg_info->byte_size,
value.SetBytes(fpu.v[reg - fpu_v0].bytes, reg_info->byte_size,
endian::InlHostByteOrder());
break;
@ -616,7 +616,7 @@ bool RegisterContextDarwin_arm64::WriteRegister(const RegisterInfo *reg_info,
case fpu_v29:
case fpu_v30:
case fpu_v31:
::memcpy(fpu.v[reg - fpu_v0].bytes.buffer, value.GetBytes(),
::memcpy(fpu.v[reg - fpu_v0].bytes, value.GetBytes(),
value.GetByteSize());
break;

View File

@ -73,7 +73,7 @@ public:
};
struct VReg {
llvm::AlignedCharArray<16, 16> bytes;
alignas(16) char bytes[16];
};
// mirrors <mach/arm/thread_status.h> arm_neon_state64_t