Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye committed May 31, 2021
1 parent 94d4bbe commit e93e357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions taichi/ir/ir_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class IRBuilder {
[[nodiscard]] LoopGuard get_loop_guard(XStmt *loop) {
return LoopGuard(*this, loop);
}

[[nodiscard]] IfGuard get_if_guard(IfStmt *if_stmt, bool true_branch) {
return IfGuard(*this, if_stmt, true_branch);
}
Expand Down
4 changes: 2 additions & 2 deletions taichi/program/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ TLANG_NAMESPACE_END
namespace std {
template <>
struct hash<taichi::lang::JITEvaluatorId> {
std::size_t operator()(
taichi::lang::JITEvaluatorId const &id) const noexcept {
std::size_t operator()(taichi::lang::JITEvaluatorId const &id) const
noexcept {
return ((std::size_t)id.op | (id.ret.hash() << 8) | (id.lhs.hash() << 16) |
(id.rhs.hash() << 24) | ((std::size_t)id.is_binary << 31)) ^
(std::hash<std::thread::id>{}(id.thread_id) << 32);
Expand Down

0 comments on commit e93e357

Please sign in to comment.