]> granicus.if.org Git - clang/commit
Fixing PR18510 by checking whether the non-virtual base of the derived class
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 24 Jan 2014 19:28:24 +0000 (19:28 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 24 Jan 2014 19:28:24 +0000 (19:28 +0000)
commit9c23bab9b02f3bc699d12d51cc8dc3c22d2548bf
tree5af27e986348e8c5f007ae2a4e467c9bbd03e27f
parenteb0acd8bc22858c7b58fcf3bcb69a4a35acb0a9c
Fixing PR18510 by checking whether the non-virtual base of the derived class
might have a smaller size as compared to the stand-alone type of the base class.
This is possible when the derived class is packed and hence might have smaller
alignment requirement than the base class.

Differential Revision: http://llvm-reviews.chandlerc.com/D2599

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGRecordLayoutBuilder.cpp
test/CodeGenCXX/pragma-pack-3.cpp [new file with mode: 0644]