[AST] Fix class layout when using external layout under MS ABI.
authorZequan Wu <zequanwu@google.com>
Tue, 15 Nov 2022 01:23:18 +0000 (17:23 -0800)
committerZequan Wu <zequanwu@google.com>
Wed, 16 Nov 2022 19:17:50 +0000 (11:17 -0800)
commit29c92879171ddce944b177127901b8140e0a1ebf
treef0ad3224681fd66b6ea2a2e14cd12e757e2efd13
parent6435fe699c2978aa8a91dc1cf5daa82fb4b28d95
[AST] Fix class layout when using external layout under MS ABI.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D137806
clang/lib/AST/RecordLayoutBuilder.cpp
clang/test/CodeGenCXX/Inputs/override-layout-virtual-base.layout
clang/test/CodeGenCXX/override-layout-virtual-base.cpp