Skip to content

Commit

Permalink
Modify ExprRV constructor from int64_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxybazh committed Aug 24, 2021
1 parent 58de4a9 commit cb25711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tir/schedule/concrete_schedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ inline T ConcreteScheduleNode::CreateRV(const StmtSRef& sref) {
}

inline ExprRV ConcreteScheduleNode::CreateRV(int64_t value) {
Var rv("v", DataType::Int(32));
Var rv("v" + std::to_string(this->symbol_table_.size() + 1), DataType::Int(32));
this->symbol_table_.Set(rv, Integer(static_cast<int32_t>(value)));
return std::move(rv);
}
Expand Down

0 comments on commit cb25711

Please sign in to comment.