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(
229229
230230runtime::Result<MethodMeta> Module::method_meta (
231231 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 () );
234234}
235235
236236runtime::Result<std::vector<runtime::EValue>> Module::execute (
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ class Module {
221221
222222 /* *
223223 * Get a method metadata struct by method name.
224- * Loads the program and method if needed.
224+ * Loads the program if needed.
225225 *
226226 * @param[in] method_name The name of the method to get the metadata for.
227227 *
You can’t perform that action at this time.
0 commit comments