From 18022894adb20cec9dc7ef87464180eb26881266 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 12 Aug 2021 09:32:09 -0700 Subject: Fix the Switch operand order in LinearExecutionWalker (#4076) This caused no noticeable bugs, but it could in theory in new passes - in fact in a pass I will open later this week it did. Also fix the order in wasm.h. That part has no effect, but it is nice to be consistent. After this PR, everything should match the single source of truth which is wasm-delegations-fields.h (as that is used in printing, binary reading/writing, etc., so it has to be correct). Also Switch now matches the ordering in Break. --- src/wasm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index e673a4c71..00de04623 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -799,8 +799,8 @@ public: ArenaVector targets; Name default_; - Expression* condition = nullptr; Expression* value = nullptr; + Expression* condition = nullptr; void finalize(); }; -- cgit v1.2.3