If a global variable has a specified alignment that is less than the preferred
authorCameron Zwarich <zwarich@apple.com>
Wed, 13 Apr 2011 06:03:16 +0000 (06:03 +0000)
committerCameron Zwarich <zwarich@apple.com>
Wed, 13 Apr 2011 06:03:16 +0000 (06:03 +0000)
commitd8b88d8558e00ed1ca1a97d6b7a86ead757412fc
tree12d438945bf039246042d262144abd040d46387c
parent8a7f4ecbc1eca4359f56e76f74f6211943eafd68
If a global variable has a specified alignment that is less than the preferred
alignment for its type, use the minimum of the specified alignment and the ABI
alignment. This fixes <rdar://problem/9275290>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129428 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetData.cpp
test/CodeGen/ARM/2011-04-12-AlignBug.ll [new file with mode: 0644]