diff options
author | Tobias Hieta <tobias@hieta.se> | 2022-08-25 09:00:25 +0200 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2022-08-25 09:00:25 +0200 |
commit | 12f27d8bef9387e2e3837f604ccd8a457d927053 (patch) | |
tree | ff083cefbf6e578efb606009251ccb7c52c96be2 /clang/lib | |
parent | 4e4252f9b64935730702ddff3b0b51a076acbf6b (diff) | |
download | llvm-12f27d8bef9387e2e3837f604ccd8a457d927053.zip llvm-12f27d8bef9387e2e3837f604ccd8a457d927053.tar.gz llvm-12f27d8bef9387e2e3837f604ccd8a457d927053.tar.bz2 |
Revert "GCC ABI Compatibility: Preserve alignment of non-pod members in packed structs"
This reverts commit 277123376ce08c98b07c154bf83e4092a5d4d3c6.
See issue: https://github.com/llvm/llvm-project/issues/57346
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/RecordLayoutBuilder.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp index 6f3ede2..5ddd95e 100644 --- a/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/clang/lib/AST/RecordLayoutBuilder.cpp @@ -1889,12 +1889,7 @@ void ItaniumRecordLayoutBuilder::LayoutField(const FieldDecl *D, UnfilledBitsInLastUnit = 0; LastBitfieldStorageUnitSize = 0; - llvm::Triple Target = Context.getTargetInfo().getTriple(); - bool FieldPacked = (Packed && (!FieldClass || FieldClass->isPOD() || - Context.getLangOpts().getClangABICompat() <= - LangOptions::ClangABI::Ver14 || - Target.isPS() || Target.isOSDarwin())) || - D->hasAttr<PackedAttr>(); + bool FieldPacked = Packed || D->hasAttr<PackedAttr>(); AlignRequirementKind AlignRequirement = AlignRequirementKind::None; CharUnits FieldSize; |