apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.09k stars 320 forks source link

[lldb] Fix custom alignments of clang types which are members of Swift types being printed incorrectly #8936

Open augusto2112 opened 4 days ago

augusto2112 commented 4 days ago

This PR cherry-picks 2 changes from upstream LLVM ("Fix #pragma (packed, n) not emitting the alignment in debug info" and "[LLDB] Respect the DW_AT_alignment attribute.") and adds a test to ensure that Swift types who have a member which is a clang type with a custom alignment are printed correctly.

rdar://127785973

augusto2112 commented 4 days ago

@swift-ci test

augusto2112 commented 4 days ago

@swift-ci test