================ @@ -760,9 +760,8 @@ ParallelToGpuLaunchLowering::matchAndRewrite(ParallelOp parallelOp, // Now that we succeeded creating the launch operation, also update the // bounds. - for (auto bound : launchBounds) - launchOp.setOperand(getLaunchOpArgumentNum(std::get<0>(bound)), - std::get<1>(bound)); + for (const auto &bound : launchBounds) + launchOp.setOperand(getLaunchOpArgumentNum(bound.first), bound.second); ---------------- kazutakahirata wrote:
How about structured bindings here? ```suggestion for (const auto &[processor, bound] : launchBounds) launchOp.setOperand(getLaunchOpArgumentNum(processor), bound); ``` https://github.com/llvm/llvm-project/pull/221853 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
