Remove the declspecs from small alignments that we can force with
authorChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 22:18:01 +0000 (22:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 22:18:01 +0000 (22:18 +0000)
commit02d75477cd9bed5acf46979869f041e7f9726200
tree55b6da2dcc5b04d0b860c228d1e0f03ac9e3c414
parente0e1985b3b71f21cd1d6c1e4924abf0f5b499a73
Remove the declspecs from small alignments that we can force with
a union. These don't actually work for by-value function arguments, and
MSVC warns if they exist even while (we hope) it aligns the argument
correctly due to the other union member.

This means MSVC will miss out on optimizations based on the alignment of
the buffer, but really, there aren't that many for x86 and MSVC is
likely not doing a great job of optimizing LLVM and Clang anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171328 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/AlignOf.h