]> granicus.if.org Git - clang/commit
When building constant structs, check if the resulting LLVM struct will be bigger...
authorAnders Carlsson <andersca@mac.com>
Fri, 2 Oct 2009 02:15:20 +0000 (02:15 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 2 Oct 2009 02:15:20 +0000 (02:15 +0000)
commit31f2f9ced8ed2dd17ac43b6addc84eb08a05442e
treeef58f58db1378ce4488f3beec5d56b04d9a75264
parentb2f81cf7f8445e0c65c0428f4fbb0442566916b8
When building constant structs, check if the resulting LLVM struct will be bigger than the record layout size and use a packed struct if that's the case. Fixes PR5108.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprConstant.cpp
test/CodeGen/const-init.c