]> granicus.if.org Git - clang/commitdiff
[MS-ABI] Fix warning introduced in r206087
authorWarren Hunt <whunt@google.com>
Sat, 12 Apr 2014 00:20:50 +0000 (00:20 +0000)
committerWarren Hunt <whunt@google.com>
Sat, 12 Apr 2014 00:20:50 +0000 (00:20 +0000)
No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206090 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/RecordLayoutBuilder.cpp

index fda374e9a0837e180c29311e5925ae0a15833d3d..ef818bb4adeeba56e84e48b7ee172e7ed36930a9 100644 (file)
@@ -2619,8 +2619,8 @@ void MicrosoftRecordLayoutBuilder::layoutVirtualBases(const CXXRecordDecl *RD) {
     // with a zero sized base.  The padding between virtual bases is 4
     // bytes (in both 32 and 64 bits modes) and always involves rounding up to
     // the required alignment, we don't know why.
-    if (PreviousBaseLayout && PreviousBaseLayout->hasZeroSizedSubObject() &&
-        BaseLayout.leadsWithZeroSizedBase() || HasVtordisp)
+    if ((PreviousBaseLayout && PreviousBaseLayout->hasZeroSizedSubObject() &&
+        BaseLayout.leadsWithZeroSizedBase()) || HasVtordisp)
       Size = Size.RoundUpToAlignment(VtorDispAlignment) + VtorDispSize;
     // Insert the virtual base.
     ElementInfo Info = getAdjustedElementInfo(BaseLayout);