From 65c20861afd48c2f8de36c686f4f98a14d1708d4 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 9 Jan 2014 02:34:06 +0000 Subject: [PATCH] Fix the clang -Werror build after r198818 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198837 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/RecordLayoutBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0