Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime/metal/metal_module.mm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void operator()(ffi::PackedArgs args, ffi::Any* rv, const ArgUnion64* pack_args)
ICHECK_EQ(sptr_to_self.get(), this);
auto it = fmap_.find(name);
if (it == fmap_.end()) {
return std::nullopt;
return;
}
const FunctionInfo& info = it->second;
MetalWrappedFunc f;
Expand All @@ -285,7 +285,7 @@ void operator()(ffi::PackedArgs args, ffi::Any* rv, const ArgUnion64* pack_args)
ffi::Module MetalModuleCreate(std::unordered_map<std::string, std::string> smap,
std::unordered_map<std::string, FunctionInfo> fmap, std::string fmt,
std::string source) {
ObjectPtr<Object> n;
ObjectPtr<MetalModuleNode> n;
AUTORELEASEPOOL { n = ffi::make_object<MetalModuleNode>(smap, fmap, fmt, source); };
return ffi::Module(n);
}
Expand Down
Loading