Skip to content

Commit 191620b

Browse files
committed
Added the requested formatting changes
1 parent 6132e2c commit 191620b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14985,13 +14985,13 @@ StmtResult SemaOpenMP::ActOnOpenMPUnrollDirective(ArrayRef<OMPClause *> Clauses,
1498514985
/*SuppressExprDiags=*/false)
1498614986
.isUsable())
1498714987
return StmtError();
14988-
// Checking if Iterator Variable Type can hold the Factor Width
14989-
unsigned FactorValWidth = FactorVal->getIntegerConstantExpr(Context)->getActiveBits();
14990-
unsigned IteratorVWidth = Context.getTypeSize(OrigVar->getType());
14991-
if ( FactorValWidth > IteratorVWidth ) {
14988+
// Check that the iterator variable’s type can hold the factor’s bit-width
14989+
unsigned factorValWidth =
14990+
FactorVal->getIntegerConstantExpr(Context)->getActiveBits();
14991+
unsigned iteratorVWidth = Context.getTypeSize(OrigVar->getType());
14992+
if (factorValWidth > iteratorVWidth) {
1499214993
Diag(FactorVal->getExprLoc(), diag::err_omp_unroll_factor_width_mismatch)
14993-
<< FactorValWidth << OrigVar->getType()
14994-
<< IteratorVWidth;
14994+
<< factorValWidth << OrigVar->getType() << iteratorVWidth;
1499514995
return StmtError();
1499614996
}
1499714997

0 commit comments

Comments
 (0)