Skip to content

Commit

Permalink
provide the current expression to noteNonLinear
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Apr 24, 2016
1 parent 4a12b11 commit 16eb3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wasm-traversal.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ struct LinearExecutionWalker : public PostWalker<SubType, VisitorType> {
LinearExecutionWalker() {}

// subclasses should implement this
void noteNonLinear() { abort(); }
void noteNonLinear(Expression* curr) { abort(); }

static void doNoteNonLinear(SubType* self, Expression** currp) {
self->noteNonLinear();
self->noteNonLinear(*currp);
}

static void scan(SubType* self, Expression** currp) {
Expand Down

0 comments on commit 16eb3c6

Please sign in to comment.