Skip to content

Commit

Permalink
use pop(x) instead of x.top(); x.pop();
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kurtenacker committed Oct 7, 2022
1 parent 624294b commit a9ad152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/thorin/be/emitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class Emitter {
}

while (!required_defs.empty()) {
auto r = required_defs.top();
required_defs.pop();
auto r = pop(required_defs);
emit_unsafe(r);
}

Expand Down
3 changes: 1 addition & 2 deletions src/thorin/transform/hoist_enters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ static void find_enters(std::deque<const Enter*>& enters, Continuation* continua
if (auto mem_param = continuation->mem_param()) {
todo.push(mem_param);
while (!todo.empty()) {
auto next_item = todo.top();
todo.pop();
auto next_item = pop(todo);

find_enters(enters, next_item);
}
Expand Down

0 comments on commit a9ad152

Please sign in to comment.