]> granicus.if.org Git - clang/commit
[ms-abi] Report VBPtrOffset correctly
authorWarren Hunt <whunt@google.com>
Tue, 14 Jan 2014 00:31:30 +0000 (00:31 +0000)
committerWarren Hunt <whunt@google.com>
Tue, 14 Jan 2014 00:31:30 +0000 (00:31 +0000)
commit8477f60525ea1382590ddc308b2858c7ad653b62
treece2c5522ff0aaac06ef686695e98c6a5778b8b63
parent018e6eada09679904f6aeeb43c230194b4f542bd
[ms-abi] Report VBPtrOffset correctly

Although VBPtrs were being placed correctly by the ms-abi layout engine,
their offsets were being improperly reported to the ASTRecordLayout
builder due to a bug.  This patch fixes that and fixes the test cases to
use the correct values.
y

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199168 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/CodeGenCXX/microsoft-abi-member-pointers.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-vtordisps.cpp
test/CodeGenCXX/virtual-base-cast.cpp