Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Dec 7, 2018
1 parent b8406ab commit 6ae8ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relay/pass/to_anf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct ExprDep : ExprFunctor<void(const Expr&)> {
}

void Depend(const Expr& parent, const Expr& child) {
CHECK(dependency.count(parent) != 0);
CHECK_NE(dependency.count(parent), 0);
dependency.at(parent).insert(child);

if (dependent.count(child) == 0) {
Expand Down Expand Up @@ -254,7 +254,7 @@ struct CalcScope : ExprFunctor<void(const Expr&)> {
if (esm.dep_final.count(ep) != 0) {
return esm.dep_final.at(ep);
}
CHECK(esm.expr_to_scope.count(parent) != 0);
CHECK_NE(esm.expr_to_scope.count(parent), 0);
return esm.expr_to_scope.at(parent);
}

Expand Down

0 comments on commit 6ae8ab6

Please sign in to comment.