diff options
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r-- | src/ir/effects.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h index b8007cfba..8e33f65bf 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -734,7 +734,14 @@ private: } void visitStringNew(StringNew* curr) {} void visitStringConst(StringConst* curr) {} - void visitStringMeasure(StringMeasure* curr) {} + void visitStringMeasure(StringMeasure* curr) { + // traps when ref is null. + parent.implicitTrap = true; + } + void visitStringEncode(StringEncode* curr) { + // traps when ref is null or we write out of bounds. + parent.implicitTrap = true; + } }; public: |