Skip to content

Commit c7e4559

Browse files
committed
add comment
1 parent 9ce2ccb commit c7e4559

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tir/ir/data_type_rewriter.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Stmt DataTypeLegalizer::VisitStmt_(const LetStmtNode* op) {
122122
Map<Var, PrimExpr> vmap{{op->var, new_var}};
123123
auto new_body = SubstituteWithDataTypeLegalization(
124124
std::move(body), [&](const Var& var) { return vmap.Get(var); });
125+
// We need to visit the body again to insert additional casts
125126
return LetStmt(new_var, value, this->VisitStmt(new_body), op->span);
126127
}
127128
}

0 commit comments

Comments
 (0)