Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 1eb0de2

Browse files
committed
CGRecordLayoutBuilder.cpp: Clarify if-else. [-Wdangling-else]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198906 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3556124 commit 1eb0de2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/CodeGen/CGRecordLayoutBuilder.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,13 @@ bool CGRecordLayoutBuilder::LayoutFields(const RecordDecl *D) {
825825
const ASTRecordLayout &Layout = Types.getContext().getASTRecordLayout(D);
826826

827827
const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D);
828-
if (RD)
828+
if (RD) {
829829
if (Types.getTarget().getCXXABI().isMicrosoft()) {
830830
if (!MSLayoutNonVirtualBases(RD, Layout))
831831
return false;
832832
} else if (!LayoutNonVirtualBases(RD, Layout))
833833
return false;
834+
}
834835

835836
unsigned FieldNo = 0;
836837

0 commit comments

Comments
 (0)