Skip to content

branching to invalid label? #270

@wanderer

Description

@wanderer

What is (br 0) branching too?

(module
  (func $if (result i32)
    (local $i i32)
    (if
      (i32.const 1)
      (br 0)
     )
     (get_local $i)
  )
  (export "if" $if)
)

There are no blocks or loops so there are no labels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions