Merge "Add heap poisoning support to the entrypoints."
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 6c8098b..4792734 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -3367,6 +3367,9 @@
     return needs_type_check_;
   }
 
+  // Can throw ArrayStoreException.
+  bool CanThrow() const OVERRIDE { return needs_type_check_; }
+
   bool CanDoImplicitNullCheckOn(HInstruction* obj) const OVERRIDE {
     UNUSED(obj);
     // TODO: Same as for ArrayGet.