Skip to content

Commit 2db0acb

Browse files
committed
[flang][NFC] Use the constexpr instead of hardcoded -1
1 parent d7add58 commit 2db0acb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

flang/lib/Lower/OpenACC.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,11 +1412,10 @@ createLoopOp(Fortran::lower::AbstractConverter &converter,
14121412
tileOperands.push_back(fir::getBase(converter.genExprValue(
14131413
*Fortran::semantics::GetExpr(*expr), stmtCtx)));
14141414
} else {
1415-
// * was passed as value and will be represented as a -1 constant
1416-
// integer.
1415+
// * was passed as value and will be represented as a special
1416+
// constant.
14171417
mlir::Value tileStar = builder.createIntegerConstant(
1418-
clauseLocation, builder.getIntegerType(32),
1419-
/* STAR */ -1);
1418+
clauseLocation, builder.getIntegerType(32), starCst);
14201419
tileOperands.push_back(tileStar);
14211420
}
14221421
}

0 commit comments

Comments
 (0)