Index: runtime/vm/code_generator.cc |
=================================================================== |
--- runtime/vm/code_generator.cc (revision 31568) |
+++ runtime/vm/code_generator.cc (working copy) |
@@ -227,6 +227,11 @@ |
Symbols::Empty(), bound_error_message); |
UNREACHABLE(); |
} |
+ if (type.IsTypeRef()) { |
+ type = TypeRef::Cast(type).type(); |
+ ASSERT(!type.IsTypeRef()); |
+ ASSERT(type.IsCanonical()); |
+ } |
ASSERT(!type.IsNull() && type.IsInstantiated()); |
arguments.SetReturn(type); |
} |