From 1eb0de2f9b893eaba9fd3fa42769fd404aa86088 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 10 Jan 2014 00:54:50 +0000 Subject: [PATCH] CGRecordLayoutBuilder.cpp: Clarify if-else. [-Wdangling-else] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198906 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGRecordLayoutBuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp index 3aa1f81c73..6a5b6decc8 100644 --- a/lib/CodeGen/CGRecordLayoutBuilder.cpp +++ b/lib/CodeGen/CGRecordLayoutBuilder.cpp @@ -825,12 +825,13 @@ bool CGRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { const ASTRecordLayout &Layout = Types.getContext().getASTRecordLayout(D); const CXXRecordDecl *RD = dyn_cast(D); - if (RD) + if (RD) { if (Types.getTarget().getCXXABI().isMicrosoft()) { if (!MSLayoutNonVirtualBases(RD, Layout)) return false; } else if (!LayoutNonVirtualBases(RD, Layout)) return false; + } unsigned FieldNo = 0; -- 2.40.0