Skip to content

Commit

Permalink
Fix the Type bug in ConvertSSA. (apache#6709)
Browse files Browse the repository at this point in the history
Co-authored-by: YushengMa <yusheng.ma@streamcomputing.com>
  • Loading branch information
Presburger and YushengMa committed Oct 19, 2020
1 parent cc89b76 commit 28e9ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tir/transforms/ir_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class IRConvertSSA final : public StmtExprMutator {
Stmt VisitStmt_(const AllocateNode* op) final {
const Var& v = op->buffer_var;
if (defined_.count(v.get())) {
Var new_var(v->name_hint, v.dtype());
Var new_var(v->name_hint, v->type_annotation);
scope_[v.get()].push_back(new_var);
Stmt stmt = StmtExprMutator::VisitStmt_(op);
scope_[v.get()].pop_back();
Expand Down

0 comments on commit 28e9ab7

Please sign in to comment.