Skip to content

Commit 4367977

Browse files
Update
[ghstack-poisoned]
2 parents 7c1b9b2 + 6f6fd58 commit 4367977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/apple/metal/runtime/shims/et_metal.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ int metal_copy_memory(void* dst, const void* src, size_t nbytes, bool src_is_dev
746746

747747
if (length == 0) {
748748
return;
749+
}
749750

750751
// Check that offsets are within buffer bounds before copying
751752
if (!srcBuffer || !dstBuffer) {

0 commit comments

Comments
 (0)