forked from OSchip/llvm-project
Fix the clang -Werror build after r198818
llvm-svn: 198837
This commit is contained in:
parent
d48cdbf0c3
commit
461f1eaaa1
|
@ -2490,7 +2490,7 @@ void MicrosoftRecordLayoutBuilder::injectVFPtr(const CXXRecordDecl *RD) {
|
|||
}
|
||||
|
||||
void MicrosoftRecordLayoutBuilder::injectVPtrs(const CXXRecordDecl *RD) {
|
||||
if (!(HasOwnVFPtr || HasVBPtr && !SharedVBPtrBase))
|
||||
if (!(HasOwnVFPtr || (HasVBPtr && !SharedVBPtrBase)))
|
||||
return;
|
||||
if (!Is64BitMode || RequiredAlignment <= CharUnits::fromQuantity(8)) {
|
||||
// Note that the VBPtr is injected first. It depends on the alignment of
|
||||
|
|
Loading…
Reference in New Issue