binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

SubtypingDiscoverer: Handle values flowing out of br_if

Open kripken opened this issue 2 months ago • 0 comments

Consider

(br_if $target
  (value)
  (condition)
)

The value here must be a subtype of the thing the br_if flows into, and also of the block it targets - the value is sent twice, effectively, so it has two subtyping constraints. We were missing the value flowing out.

kripken avatar Dec 05 '25 18:12 kripken