Skip to content

Commit 6030db8

Browse files
author
titzer
committed
Merge pull request #467 from WebAssembly/add_nop
Add nop
2 parents 2412b50 + a386358 commit 6030db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AstSemantics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ WebAssembly offers basic structured control flow with the following constructs.
231231
Since all AST nodes are expressions in WebAssembly, control constructs may yield
232232
a value and may appear as children of other expressions.
233233

234+
* `nop`: an empty operator that does not yield a value
234235
* `block`: a fixed-length sequence of expressions with a label at the end
235236
* `loop`: a block with an additional label at the beginning which may be used to form loops
236237
* `if`: if expression with a *then* expression
@@ -255,7 +256,7 @@ loop from outside it. This restriction ensures all control flow graphs are well-
255256

256257
### Yielding values from control constructs
257258

258-
The `if`, `br`, `br_if`, `case`, and `return` constructs do not yield values.
259+
The `nop`, `if`, `br`, `br_if`, `case`, and `return` constructs do not yield values.
259260
Other control constructs may yield values if their subexpressions yield values:
260261

261262
* `block`: yields either the value of the last expression in the block or the result of an inner `br` that targeted the label of the block

0 commit comments

Comments
 (0)