summaryrefslogtreecommitdiff
path: root/src/passes/LocalCSE.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-11-04 10:27:06 -0700
committerGitHub <noreply@github.com>2022-11-04 10:27:06 -0700
commit0e112d4c51de69620a419e1afce88e08e725e40b (patch)
tree163a2028c7b8075596ffa213bd15fd2a035b9c69 /src/passes/LocalCSE.cpp
parent8388a33e84c0730f5a7c7e89bd089ad7c9db9455 (diff)
downloadbinaryen-0e112d4c51de69620a419e1afce88e08e725e40b.tar.gz
binaryen-0e112d4c51de69620a419e1afce88e08e725e40b.tar.bz2
binaryen-0e112d4c51de69620a419e1afce88e08e725e40b.zip
[Wasm GC] Fix GUFA on externalize/internalize (#5220)
These operations emit a completely different type than their input, so they must be marked as roots, and not as things that flow values through them (because then we filter everything out as the types are not compatible). Fixes #5219
Diffstat (limited to 'src/passes/LocalCSE.cpp')
-rw-r--r--src/passes/LocalCSE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/LocalCSE.cpp b/src/passes/LocalCSE.cpp
index 97d31b9d3..2b9b26f0e 100644
--- a/src/passes/LocalCSE.cpp
+++ b/src/passes/LocalCSE.cpp
@@ -23,7 +23,7 @@
// an add operation appear twice, and the inputs must be identical in both
// cases, then the second one requests to reuse the computed value from the
// first. The first one to appear is the "original" expression that will remain
-// in the code; we will save it's value to a local, and get it from that local
+// in the code; we will save its value to a local, and get it from that local
// later:
//
// (i32.add (A) (B))