Index: runtime/vm/guard_field_test.cc |
diff --git a/runtime/vm/guard_field_test.cc b/runtime/vm/guard_field_test.cc |
index d0ecb6edf503725ef0ea6bfbe9ed4d26b8fb3486..fcefc692b6a44704ca00d2f8661e83af57790baa 100644 |
--- a/runtime/vm/guard_field_test.cc |
+++ b/runtime/vm/guard_field_test.cc |
@@ -18,7 +18,8 @@ RawField* LookupField(Dart_Handle library, const char* class_name, |
EXPECT(!cls.IsNull()); // No ambiguity error expected. |
String& fieldname = String::Handle(String::New(field_name)); |
- Field& field = Field::ZoneHandle(cls.LookupInstanceField(fieldname)); |
+ Field& field = |
+ Field::ZoneHandle(cls.LookupInstanceFieldAllowPrivate(fieldname)); |
EXPECT(!field.IsNull()); |
return field.raw(); |
} |