From: David Blaikie Date: Thu, 9 Jan 2014 02:34:06 +0000 (+0000) Subject: Fix the clang -Werror build after r198818 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65c20861afd48c2f8de36c686f4f98a14d1708d4;p=clang Fix the clang -Werror build after r198818 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198837 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index 5191cb2e73..515088e67b 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -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