| Index: runtime/vm/constant_propagator.cc
|
| diff --git a/runtime/vm/constant_propagator.cc b/runtime/vm/constant_propagator.cc
|
| index a147466267323efa4505354f13cb7b5e16fd255f..95bc646a8e76ce2d03fd7c725300ba6361005d40 100644
|
| --- a/runtime/vm/constant_propagator.cc
|
| +++ b/runtime/vm/constant_propagator.cc
|
| @@ -764,10 +764,9 @@ void ConstantPropagator::VisitInstanceOf(InstanceOfInstr* instr) {
|
| const Instance& instance = Instance::Cast(value);
|
| const AbstractType& checked_type = instr->type();
|
| if (instr->instantiator_type_arguments()->BindsToConstantNull()) {
|
| - const TypeArguments& checked_type_arguments = TypeArguments::Handle();
|
| Error& bound_error = Error::Handle();
|
| bool is_instance = instance.IsInstanceOf(
|
| - checked_type, checked_type_arguments, &bound_error);
|
| + checked_type, Object::null_type_arguments(), &bound_error);
|
| // Can only have bound error with generics.
|
| ASSERT(bound_error.IsNull());
|
| SetValue(instr, Bool::Get(is_instance));
|
|
|