diff --git a/src/relay/pass/fuse_ops.cc b/src/relay/pass/fuse_ops.cc index 9aef2752a3cdb..da566a18a0990 100644 --- a/src/relay/pass/fuse_ops.cc +++ b/src/relay/pass/fuse_ops.cc @@ -265,7 +265,7 @@ class IndexedForwardGraph::Creator : private ExprVisitor { CHECK(tuple_type); bool has_reference = false; for (auto ty : tuple_type->fields) { - if (auto ref_ty = ty.as()) { + if (ty.as()) { has_reference = true; break; }