Skip to content

Commit 7578b03

Browse files
committed
Add alignas(8) to handle padding of the struct with union
1 parent 693f103 commit 7578b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/elf-core/ThreadElfCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ELFLinuxSigInfo {
8484
int32_t si_code;
8585
// Copied from siginfo_t so we don't have to include signal.h on non 'Nix
8686
// builds. Slight modifications to ensure no 32b vs 64b differences.
87-
struct {
87+
struct alignas(8) {
8888
lldb::addr_t si_addr; /* faulting insn/memory ref. */
8989
int16_t si_addr_lsb; /* Valid LSB of the reported address. */
9090
union {

0 commit comments

Comments
 (0)