File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
mlir/lib/Dialect/OpenMP/IR Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3300,6 +3300,9 @@ void NewCliOp::getAsmResultNames(OpAsmSetValueNameFn setNameFn) {
33003300 Value result = getResult ();
33013301 auto [newCli, gen, cons] = decodeCli (result);
33023302
3303+ // Structured binding `gen` cannot be captured in lambdas before C++20
3304+ OpOperand *generator = gen;
3305+
33033306 // Derive the CLI variable name from its generator:
33043307 // * "canonloop" for omp.canonical_loop
33053308 // * custom name for loop transformation generatees
@@ -3324,7 +3327,7 @@ void NewCliOp::getAsmResultNames(OpAsmSetValueNameFn setNameFn) {
33243327 unsigned firstGrid = generateesFirst;
33253328 unsigned firstIntratile = generateesFirst + generateesCount / 2 ;
33263329 unsigned end = generateesFirst + generateesCount;
3327- unsigned opnum = gen ->getOperandNumber ();
3330+ unsigned opnum = generator ->getOperandNumber ();
33283331 // In the OpenMP apply and looprange clauses, indices are 1-based
33293332 if (firstGrid <= opnum && opnum < firstIntratile) {
33303333 unsigned gridnum = opnum - firstGrid + 1 ;
You can’t perform that action at this time.
0 commit comments