From 77be43eb794dd0268fbf8298639ca2f717ef0663 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 14 Sep 2016 20:08:35 -0700 Subject: fix switch traversal order --- src/wasm-traversal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h index 4725237dd..47b9d26e8 100644 --- a/src/wasm-traversal.h +++ b/src/wasm-traversal.h @@ -335,8 +335,8 @@ struct PostWalker : public Walker { } case Expression::Id::SwitchId: { self->pushTask(SubType::doVisitSwitch, currp); - self->maybePushTask(SubType::scan, &curr->cast()->value); self->pushTask(SubType::scan, &curr->cast()->condition); + self->maybePushTask(SubType::scan, &curr->cast()->value); break; } case Expression::Id::CallId: { -- cgit v1.2.3