Copilot commented on code in PR #18060:
URL: https://github.com/apache/tvm/pull/18060#discussion_r2146948775
##########
src/tir/analysis/buffer_access_lca_detector.cc:
##########
@@ -147,7 +147,7 @@ class LCADetector : public StmtExprVisitor {
auto do_collect_itervar_scope = [this](const IterVar& itervar,
const PrimExpr& binding) -> const
ScopeInfo* {
const ScopeInfo* highest_scope = nullptr;
- PostOrderVisit(binding, [this, &itervar, &highest_scope](const
ObjectRef& obj) {
+ PostOrderVisit(binding, [this, &highest_scope](const ObjectRef& obj) {
Review Comment:
The lambda no longer uses the captured variable 'itervar'. Removing it from
the capture list improves clarity and avoids potential confusion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]