summaryrefslogtreecommitdiff
path: root/src/ir/possible-contents.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-07-08 08:32:59 -0700
committerGitHub <noreply@github.com>2022-07-08 08:32:59 -0700
commitb88bedb16c8177442916eb64ebb4886206aeccf0 (patch)
treed2c037ce0b59b9a1362c349a61dc3b31a3bfe27e /src/ir/possible-contents.cpp
parent19a437500a4c30f48355722653a01a8c44ff6bec (diff)
downloadbinaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.tar.gz
binaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.tar.bz2
binaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.zip
[Strings] string.concat (#4777)
Diffstat (limited to 'src/ir/possible-contents.cpp')
-rw-r--r--src/ir/possible-contents.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/possible-contents.cpp b/src/ir/possible-contents.cpp
index c865585f1..21eadc50b 100644
--- a/src/ir/possible-contents.cpp
+++ b/src/ir/possible-contents.cpp
@@ -689,6 +689,10 @@ struct InfoCollector
// TODO: optimize when possible
addRoot(curr);
}
+ void visitStringConcat(StringConcat* curr) {
+ // TODO: optimize when possible
+ addRoot(curr);
+ }
// TODO: Model which throws can go to which catches. For now, anything thrown
// is sent to the location of that tag, and any catch of that tag can