| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 37188b64b9a325da84a56725f5bc477dafefc927..75427ad364ff5d8e1f07fb6b15ee195be813c624 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -232,7 +232,7 @@ DEFINE_RUNTIME_ENTRY(InstantiateTypeArguments, 2) {
|
| // Code inlined in the caller should have optimized the case where the
|
| // instantiator can be reused as type argument vector.
|
| ASSERT(instantiator.IsNull() || !type_arguments.IsUninstantiatedIdentity());
|
| - if (isolate->flags().type_checks()) {
|
| + if (isolate->type_checks()) {
|
| Error& bound_error = Error::Handle();
|
| type_arguments =
|
| type_arguments.InstantiateAndCanonicalizeFrom(instantiator,
|
| @@ -537,7 +537,7 @@ DEFINE_RUNTIME_ENTRY(TypeCheck, 5) {
|
| }
|
| String& bound_error_message = String::Handle();
|
| if (!bound_error.IsNull()) {
|
| - ASSERT(isolate->flags().type_checks());
|
| + ASSERT(isolate->type_checks());
|
| bound_error_message = String::New(bound_error.ToErrorCString());
|
| }
|
| if (src_type_name.Equals(dst_type_name)) {
|
|
|