summaryrefslogtreecommitdiff
path: root/src/ir/effects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r--src/ir/effects.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h
index 2dfe616f9..70e9192c0 100644
--- a/src/ir/effects.h
+++ b/src/ir/effects.h
@@ -755,6 +755,11 @@ private:
}
}
void visitArrayNew(ArrayNew* curr) {}
+ void visitArrayNewSeg(ArrayNewSeg* curr) {
+ // Traps on out of bounds access to segments or access to dropped
+ // segments.
+ parent.implicitTrap = true;
+ }
void visitArrayInit(ArrayInit* curr) {}
void visitArrayGet(ArrayGet* curr) {
if (curr->ref->type.isNull()) {