Index: runtime/vm/compiler_test.cc |
diff --git a/runtime/vm/compiler_test.cc b/runtime/vm/compiler_test.cc |
index 18a47acee897ada81b89d48c690ee72b2152719f..aa5b8929c607cf53de5f41f2577444c4eff92bc3 100644 |
--- a/runtime/vm/compiler_test.cc |
+++ b/runtime/vm/compiler_test.cc |
@@ -90,9 +90,8 @@ TEST_CASE(RegenerateAllocStubs) { |
EXPECT(!cls.IsNull()); |
Isolate* isolate = Isolate::Current(); |
- StubCode* stub_code = isolate->stub_code(); |
const Code& stub = Code::Handle(isolate, |
- stub_code->GetAllocationStubForClass(cls)); |
+ StubCode::GetAllocationStubForClass(cls)); |
Class& owner = Class::Handle(); |
owner ^= stub.owner(); |
owner.DisableAllocationStub(); |