Index: runtime/lib/mirrors.cc |
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc |
index 1dade418b20d37dcac6e91577b4a9dfe5a4c9293..ca62ecf4be549015438ad3b7e11f702513ed4b0a 100644 |
--- a/runtime/lib/mirrors.cc |
+++ b/runtime/lib/mirrors.cc |
@@ -95,14 +95,7 @@ static void EnsureConstructorsAreCompiled(const Function& func) { |
Exceptions::PropagateError(error); |
UNREACHABLE(); |
} |
- if (!func.HasCode()) { |
- const Error& error = |
- Error::Handle(zone, Compiler::CompileFunction(thread, func)); |
- if (!error.IsNull()) { |
- Exceptions::PropagateError(error); |
- UNREACHABLE(); |
- } |
- } |
+ func.EnsureHasCode(); |
} |
static RawInstance* CreateParameterMirrorList(const Function& func, |