diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-22 14:55:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-24 16:01:15 -0700 |
commit | 16eb3c65245bb8a6c60ee3bb3ec7b96e18fe62c6 (patch) | |
tree | 72e6ef813dae7a4387754dea76657db0fff5aa79 /src | |
parent | 4a12b112defaa80dfb2d661793c809abd4757c0b (diff) | |
download | binaryen-16eb3c65245bb8a6c60ee3bb3ec7b96e18fe62c6.tar.gz binaryen-16eb3c65245bb8a6c60ee3bb3ec7b96e18fe62c6.tar.bz2 binaryen-16eb3c65245bb8a6c60ee3bb3ec7b96e18fe62c6.zip |
provide the current expression to noteNonLinear
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-traversal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h index b8b625f09..7b160ed3d 100644 --- a/src/wasm-traversal.h +++ b/src/wasm-traversal.h @@ -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) { |