]> granicus.if.org Git - clang/commit
fix -fsanitize-address-field-padding for the cases with virtual base classes
authorKostya Serebryany <kcc@google.com>
Fri, 17 Oct 2014 21:02:13 +0000 (21:02 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 17 Oct 2014 21:02:13 +0000 (21:02 +0000)
commita4de584195b308145f7ad189b5dd0303de5fb4f7
tree19f590162b5fe37f5482670c93a3a30c93e1bc19
parent1df657da6cbc9b64228c3ef81d86917a85957237
fix -fsanitize-address-field-padding for the cases with virtual base classes

Summary: Correctly compute the non-virtual size of a class.

Test Plan: Build SPEC 2016 with -fsanitize-address-field-padding

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5848

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220089 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
test/CodeGen/sanitize-address-field-padding.cpp