Index: runtime/lib/mirrors.cc |
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc |
index 54b22a663acc22976b5e623abdf19bb7dece337c..9e2a1ddf04d455d805aa9c7c470309c8ce9f7070 100644 |
--- a/runtime/lib/mirrors.cc |
+++ b/runtime/lib/mirrors.cc |
@@ -145,7 +145,7 @@ static RawInstance* CreateParameterMirrorList(const Function& func, |
// * Whether a parameters has been declared as final. |
// * Any metadata associated with the parameter. |
Object& result = Object::Handle(); |
- if (func.kernel_function() != NULL) { |
+ if (func.kernel_offset() > 0) { |
result = kernel::BuildParameterDescriptor(func); |
} else { |
result = Parser::ParseFunctionParameters(func); |