mehrdadh commented on a change in pull request #7838:
URL: https://github.com/apache/tvm/pull/7838#discussion_r613665903
##########
File path: src/runtime/crt/common/crt_runtime_api.c
##########
@@ -298,8 +298,14 @@ static tvm_crt_error_t
FindFunctionOrSetAPIError(tvm_module_index_t module_index
}
int TVMFuncGetGlobal(const char* name, TVMFunctionHandle* out) {
- return FindFunctionOrSetAPIError(kGlobalFuncModuleIndex,
&global_func_registry.registry, name,
- out);
+ tvm_crt_error_t to_return =
+ FindFunctionOrSetAPIError(kGlobalFuncModuleIndex,
&global_func_registry.registry, name, out);
+ // For compatibility with C++
Review comment:
Done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]