Index: runtime/vm/kernel_reader.cc |
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc |
index 61b307f6403f2f96f160b0d0954abf29bdd0843b..127ad32231e35ef54c487ad1b4f35bdcaf4621c6 100644 |
--- a/runtime/vm/kernel_reader.cc |
+++ b/runtime/vm/kernel_reader.cc |
@@ -208,9 +208,9 @@ Object& KernelReader::ReadProgram() { |
Procedure* procedure = |
reinterpret_cast<Procedure*>(to_patch.kernel_function()); |
- // If dart:_builtin was not compiled from Kernel at all or if it was |
- // linked with a script, it does not need to be patched. |
- if ((procedure != NULL) && (procedure->function()->body() == NULL)) { |
+ // If dart:_builtin was not compiled from Kernel at all it does not need |
+ // to be patched. |
+ if (procedure != NULL) { |
// We will handle the StaticGet specially and will not use the name. |
// |
// TODO(kmillikin): we are leaking the function body. Find a way to |