Skip to content

Commit 92dcbf4

Browse files
authored
[NFC] Fix commas on assertion from 147514 (#158635)
As brought up on the review for #147514, the original patch doesn't correctly parenthesize the expression in the assert. This fixes it.
1 parent 64d5e6c commit 92dcbf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,9 +2142,9 @@ Value *ScalarExprEmitter::VisitInitListExpr(InitListExpr *E) {
21422142
bool Ignore = TestAndClearIgnoreResultAssign();
21432143
(void)Ignore;
21442144
unsigned NumInitElements = E->getNumInits();
2145-
assert(Ignore == false ||
2146-
(NumInitElements == 0 && E->getType()->isVoidType()) &&
2147-
"init list ignored");
2145+
assert((Ignore == false ||
2146+
(NumInitElements == 0 && E->getType()->isVoidType())) &&
2147+
"init list ignored");
21482148

21492149
// HLSL initialization lists in the AST are an expansion which can contain
21502150
// side-effecting expressions wrapped in opaque value expressions. To properly

0 commit comments

Comments
 (0)