File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,8 @@ runtime::Error Module::load_method(
229
229
230
230
runtime::Result<MethodMeta> Module::method_meta (
231
231
const std::string& method_name) {
232
- ET_CHECK_OK_OR_RETURN_ERROR (load_method (method_name ));
233
- return methods_. at (method_name). method ->method_meta ();
232
+ ET_CHECK_OK_OR_RETURN_ERROR (load ( ));
233
+ return program_ ->method_meta (method_name. c_str () );
234
234
}
235
235
236
236
runtime::Result<std::vector<runtime::EValue>> Module::execute (
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ class Module {
221
221
222
222
/* *
223
223
* Get a method metadata struct by method name.
224
- * Loads the program and method if needed.
224
+ * Loads the program if needed.
225
225
*
226
226
* @param[in] method_name The name of the method to get the metadata for.
227
227
*
You can’t perform that action at this time.
0 commit comments