]> granicus.if.org Git - clang/commit
Fix a bug with block layout when the block contains something
authorJohn McCall <rjmccall@apple.com>
Thu, 26 Apr 2012 21:14:42 +0000 (21:14 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 26 Apr 2012 21:14:42 +0000 (21:14 +0000)
commit6ea4841da1390b4f76d066f25333f11f6d8c5f40
treee7d243636f7cec06291969aeaec69431b3ed866e
parente002631101d3bafbc90ed8589ffc615f04dc245b
Fix a bug with block layout when the block contains something
more aligned than the block header but also contains something
smaller than the block-header alignment but not exactly half
the difference between the large alignment and the header
alignment.  Got that?

I'm really not sure what I was thinking with the buggy computation
here, but the fix is pretty obvious.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155662 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
test/CodeGen/blocks.c