diff options
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r-- | src/ir/effects.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h index f9b6ca6fc..2de5c54f6 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -618,6 +618,10 @@ private: parent.implicitTrap = true; } } + void visitArrayCopy(ArrayCopy* curr) { + // traps when a ref is null, or when out of bounds. + parent.implicitTrap = true; + } void visitRefAs(RefAs* curr) { // traps when the arg is not valid if (curr->value->type.isNullable()) { |