summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-04-14 17:27:05 -0700
committerGitHub <noreply@github.com>2020-04-14 17:27:05 -0700
commite04d25e2e6cab2df0dfda5e4a206714a202313bc (patch)
tree295d25bc3b66ce02035ba4d8381e2ef36365d359 /src/wasm2js.h
parent359525bc5c04798e394a6e0a48c40fbfed7366db (diff)
downloadbinaryen-e04d25e2e6cab2df0dfda5e4a206714a202313bc.tar.gz
binaryen-e04d25e2e6cab2df0dfda5e4a206714a202313bc.tar.bz2
binaryen-e04d25e2e6cab2df0dfda5e4a206714a202313bc.zip
Fix reuse of constant nodes in Precompute (#2764)
Previously we tried to reuse `Const` node if a precomputed value is a constant node. But now we have two more kinds of constant node (`RefNull` and `RefFunc`), so we shouldn't reuse them interchangeably, meaning we shouldn't try to reuse a `Const` node when the value at hand is a `RefNull`. This correctly checks the type of node and tries to reuse only if the types of nodes match. Fixes #2759.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions