Index: runtime/vm/bootstrap_nocore.cc |
diff --git a/runtime/vm/bootstrap_nocore.cc b/runtime/vm/bootstrap_nocore.cc |
index c1e1e7441c0503c3d0758e683ec6331f4cf82e0d..a05eeaf7316a6d7cbd3b8eb0fd7e4e85625bd7ff 100644 |
--- a/runtime/vm/bootstrap_nocore.cc |
+++ b/runtime/vm/bootstrap_nocore.cc |
@@ -98,7 +98,7 @@ RawError* BootstrapFromKernel(Thread* thread, kernel::Program* program) { |
kernel::StringIndex uri_index = kernel_library->import_uri(); |
const String& kernel_name = reader.DartSymbol(uri_index); |
if (kernel_name.Equals(dart_name)) { |
- reader.ReadLibrary(kernel_library); |
+ reader.ReadLibrary(kernel_library->kernel_offset()); |
library.SetLoaded(); |
break; |
} |