Skip to content

Commit

Permalink
Update fuse_ops.cc (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and tqchen committed Nov 14, 2018
1 parent 531a48d commit 1b86373
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/relay/pass/fuse_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class DominatorTree {
* \param rhs The right node.
* \param edge_pattern
* The combined edge pattern across all the parents.
* \return The least common acenstor of thw two.
* \return The least common ancestor of thw two.
*/
static Node* LeastCommonAncestor(
Node* lhs,
Expand Down Expand Up @@ -380,8 +380,7 @@ DominatorTree DominatorTree::PostDom(common::Arena* arena,
}
pattern = CombinePattern(pattern, link->value.pattern);
}
CHECK(parent != nullptr);
tnode->depth = parent->depth + 1;
tnode->depth = parent ? parent->depth + 1 : 1;
tnode->parent = parent;
tnode->pattern = pattern;
}
Expand Down

0 comments on commit 1b86373

Please sign in to comment.