From 82aa126353914071bb4c080e9e5e1d690dadff76 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sat, 26 Nov 2022 15:38:48 +0000 Subject: [PATCH] gen_wasm: improve a code comment --- crates/compiler/gen_wasm/src/code_builder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/compiler/gen_wasm/src/code_builder.rs b/crates/compiler/gen_wasm/src/code_builder.rs index 2bf005182a..ddb6c6cd5b 100644 --- a/crates/compiler/gen_wasm/src/code_builder.rs +++ b/crates/compiler/gen_wasm/src/code_builder.rs @@ -529,6 +529,7 @@ impl<'a> CodeBuilder<'a> { self.inst_base(opcode, pops, false); // We don't support block result types. Too hard to track types through arbitrary control flow. + // This results in slightly more instructions but not much. (Rust does the same thing!) self.code.push(ValueType::VOID); // Start a new block with a fresh value stack