Commit 58405c2
committed
[Metal] Fix
This PR fixes a bug in `MetalModuleNode::GetFunction`.
The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.GetFunction of metal runtime1 parent 3873ce4 commit 58405c2
File tree
3 files changed
+3
-2
lines changed- ffi/cmake/Utils
- src/runtime/metal
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
0 commit comments