Skip to content

Commit

Permalink
[z/OS]Remove overriding default attribute aligned value
Browse files Browse the repository at this point in the history
Make DefaultAlignForAttributeAligned consistent with SystemZ.

Reviewed By: abhina.sreeskantharajan, anirudhp

Differential Revision: https://reviews.llvm.org/D107189
  • Loading branch information
fanbo-meng committed Jul 30, 2021
1 parent 9019b55 commit bdf4c7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion clang/lib/Basic/Targets/OSTargets.h
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,6 @@ class LLVM_LIBRARY_VISIBILITY ZOSTargetInfo : public OSTargetInfo<Target> {
this->UseZeroLengthBitfieldAlignment = true;
this->UseLeadingZeroLengthBitfield = false;
this->ZeroLengthBitfieldBoundary = 32;
this->DefaultAlignForAttributeAligned = 128;
}
};

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/SystemZ/zos-alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct s10 {
} S10;
// CHECK: 0 | struct s10
// CHECK-NEXT: 0 | unsigned int a
// CHECK-NEXT: | [sizeof=16, align=16]
// CHECK-NEXT: | [sizeof=8, align=8]

struct s11 {
char a;
Expand Down

0 comments on commit bdf4c7b

Please sign in to comment.