Skip to content

Commit 6135f45

Browse files
committed
Flip conditional
1 parent 3582987 commit 6135f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Shims.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal func _mallocSize(ofAllocation ptr: UnsafeRawPointer) -> Int? {
4747

4848
@inline(__always) @inlinable @_effects(readonly)
4949
internal func _mallocSizeIfHeap(ofAllocation ptr: UnsafeRawPointer) -> Int? {
50-
if !Builtin.isOnStack(ptr) { return nil }
50+
if Builtin.isOnStack(ptr) { return nil }
5151
return _mallocSize(ofAllocation: ptr)
5252
}
5353

0 commit comments

Comments
 (0)