diff options
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 4d6b909629..8a47895625 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -6607,6 +6607,8 @@ class HArraySet final : public HExpression<3> { SetPackedFlag<kFlagNeedsTypeCheck>(false); // Clear the `CanTriggerGC` flag too as we can only trigger a GC when doing a type check. SetSideEffects(GetSideEffects().Exclusion(SideEffects::CanTriggerGC())); + // Clear the environment too as we can only throw if we need a type check. + RemoveEnvironment(); } void ClearValueCanBeNull() { |