]> granicus.if.org Git - clang/commit
[MS-ABI] Update to vtordisp computation
authorWarren Hunt <whunt@google.com>
Fri, 11 Apr 2014 22:05:28 +0000 (22:05 +0000)
committerWarren Hunt <whunt@google.com>
Fri, 11 Apr 2014 22:05:28 +0000 (22:05 +0000)
commit4639d293beef1db30b3523f1ad00c19754fa6f99
tree677378e34ef912b1dcf5b9ca44c04246ec6146fc
parentbfd91e65a139a7c1357ba7105b2ebbabfc2a0192
[MS-ABI] Update to vtordisp computation
A portion of the vtordisp computation that was previously unguarded by a
test for the declaration of user defined constructors/destructors was
erroniously adding vtordisps to things that shouldn't have them.  This
patch correctly guards that codepath.  In addition, it updates the
comments to make them more clear.  Test case is included.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206077 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/Layout/ms-x86-vtordisp.cpp