summaryrefslogtreecommitdiff
path: root/src/ir/effects.h
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/effects.h
parent19a437500a4c30f48355722653a01a8c44ff6bec (diff)
downloadbinaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.tar.gz
binaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.tar.bz2
binaryen-b88bedb16c8177442916eb64ebb4886206aeccf0.zip
[Strings] string.concat (#4777)
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r--src/ir/effects.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h
index 8e33f65bf..dbd1bb48f 100644
--- a/src/ir/effects.h
+++ b/src/ir/effects.h
@@ -742,6 +742,10 @@ private:
// traps when ref is null or we write out of bounds.
parent.implicitTrap = true;
}
+ void visitStringConcat(StringConcat* curr) {
+ // traps when an input is null.
+ parent.implicitTrap = true;
+ }
};
public: