Index: runtime/lib/object.cc |
diff --git a/runtime/lib/object.cc b/runtime/lib/object.cc |
index 609a87d3537e06e9818b5df3854cffdafd5fd622..95f2661504288c5eb831dd50deb2de9ec5995b9c 100644 |
--- a/runtime/lib/object.cc |
+++ b/runtime/lib/object.cc |
@@ -265,7 +265,8 @@ DEFINE_NATIVE_ENTRY(Object_as, 3) { |
if (!type.IsInstantiated()) { |
// Instantiate type before reporting the error. |
const AbstractType& instantiated_type = AbstractType::Handle( |
- type.InstantiateFrom(instantiator_type_arguments, NULL)); |
+ type.InstantiateFrom(instantiator_type_arguments, NULL, |
+ NULL, NULL, Heap::kNew)); |
// Note that instantiated_type may be malformed. |
type_name = instantiated_type.UserVisibleName(); |
} else { |