Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Aug 11, 2023
1 parent 708fcc6 commit 5b0e9b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions enzyme/Enzyme/TypeAnalysis/Trie.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ class Trie : public std::enable_shared_from_this<Trie> {

if (it == current_node->mappings.end()) {
// go one level down to the right
if (queue.empty())
if (current_idx.empty())
break;

current_node = this;
for (int i = 0; i < queue.size(); ++i) {
bool is_top = i == (queue.size() - 1);
current_node = current_node->mapping.begin() + queue[i] + is_top;
for (int i = 0; i < current_idx.size(); ++i) {
bool is_top = i == (current_idx.size() - 1);
current_node = current_node->mapping.begin() + current_idx[i] + is_top;
}
}

Expand Down

0 comments on commit 5b0e9b4

Please sign in to comment.