summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/instructions.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs
index 6f11817..d8aff7b 100644
--- a/crates/types/src/instructions.rs
+++ b/crates/types/src/instructions.rs
@@ -17,6 +17,7 @@ pub struct MemArg {
type BrTableDefault = u32;
type BrTableLen = usize;
type EndOffset = usize;
+type ElseOffset = usize;
/// A WebAssembly Instruction
///
@@ -41,7 +42,7 @@ pub enum Instruction {
Nop,
Block(BlockArgs, EndOffset),
Loop(BlockArgs, EndOffset),
- If(BlockArgs, EndOffset),
+ If(BlockArgs, Option<ElseOffset>, EndOffset),
Else(EndOffset),
EndBlockFrame,
EndFunc,