aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Hunt <whunt@google.com>2014-04-12 00:20:50 +0000
committerWarren Hunt <whunt@google.com>2014-04-12 00:20:50 +0000
commitaa80aa1f92bfaadd1736a309efe11e48f77fd6f4 (patch)
tree2aefa975afe1896f7a9935a8f9112dbf673b0d2d
parent9f26a8d4a268f80bd9012207105f34613fb1b9f8 (diff)
downloadclang_35a-aa80aa1f92bfaadd1736a309efe11e48f77fd6f4.tar.gz
[MS-ABI] Fix warning introduced in r206087
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206090 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/RecordLayoutBuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp
index fda374e9a0..ef818bb4ad 100644
--- a/lib/AST/RecordLayoutBuilder.cpp
+++ b/lib/AST/RecordLayoutBuilder.cpp
@@ -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);