| Index: runtime/lib/mirrors.cc
|
| diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
|
| index 48e579b12ca6b409eafb7c52f8cdd2086257fc09..7a2efe0bace42e415210bc1902508f09bcef972b 100644
|
| --- a/runtime/lib/mirrors.cc
|
| +++ b/runtime/lib/mirrors.cc
|
| @@ -1370,7 +1370,7 @@ DEFINE_NATIVE_ENTRY(InstanceMirror_invokeSetter, 4) {
|
|
|
| DEFINE_NATIVE_ENTRY(InstanceMirror_computeType, 1) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(Instance, instance, arguments->NativeArgAt(0));
|
| - const AbstractType& type = AbstractType::Handle(instance.GetType());
|
| + const AbstractType& type = AbstractType::Handle(instance.GetType(Heap::kNew));
|
| // The static type of null is specified to be the bottom type, however, the
|
| // runtime type of null is the Null type, which we correctly return here.
|
| return type.Canonicalize();
|
|
|