diff options
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r-- | src/ir/effects.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h index 893ff2cae..b4987b12b 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -841,13 +841,13 @@ private: switch (curr->op) { case StringNewUTF8: case StringNewWTF8: - case StringNewReplace: + case StringNewLossyUTF8: case StringNewWTF16: parent.readsMemory = true; break; case StringNewUTF8Array: case StringNewWTF8Array: - case StringNewReplaceArray: + case StringNewLossyUTF8Array: case StringNewWTF16Array: parent.readsArray = true; break; @@ -865,11 +865,13 @@ private: parent.implicitTrap = true; switch (curr->op) { case StringEncodeUTF8: + case StringEncodeLossyUTF8: case StringEncodeWTF8: case StringEncodeWTF16: parent.writesMemory = true; break; case StringEncodeUTF8Array: + case StringEncodeLossyUTF8Array: case StringEncodeWTF8Array: case StringEncodeWTF16Array: parent.writesArray = true; |