Skip to content

Commit 42abe65

Browse files
committed
Address review comment.
1 parent c7154b0 commit 42abe65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,8 +2159,7 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal,
21592159
assert(InitStyle == CXXNewInitializationStyle::Parens &&
21602160
"paren init for non-call init");
21612161
Exprs = MultiExprArg(List->getExprs(), List->getNumExprs());
2162-
}
2163-
if (auto *List = dyn_cast_or_null<CXXParenListInitExpr>(Initializer)) {
2162+
} else if (auto *List = dyn_cast_or_null<CXXParenListInitExpr>(Initializer)) {
21642163
assert(InitStyle == CXXNewInitializationStyle::Parens &&
21652164
"paren init for non-call init");
21662165
Exprs = List->getInitExprs();

0 commit comments

Comments
 (0)