Index: runtime/vm/intermediate_language.cc |
=================================================================== |
--- runtime/vm/intermediate_language.cc (revision 9315) |
+++ runtime/vm/intermediate_language.cc (working copy) |
@@ -589,9 +589,7 @@ |
// ==== Support for propagating static type. |
RawAbstractType* ConstantVal::StaticType() const { |
if (value().IsInstance()) { |
- Instance& instance = Instance::Handle(); |
- instance ^= value().raw(); |
- return instance.GetType(); |
+ return Instance::Cast(value()).GetType(); |
} else { |
UNREACHABLE(); |
return AbstractType::null(); |