Fix unused var warning in benchmark

This commit is contained in:
Valeriy Van
2025-06-28 17:48:46 +03:00
parent edc7109989
commit b0f46de8b1

View File

@@ -855,7 +855,7 @@ public func run_BridgedNSDictionaryEnumerate(_ n: Int) {
public func run_BridgedNSArrayBufferAccess(_ n: Int) {
#if _runtime(_ObjC)
for _ in 0 ..< n {
for i in 0..<1000 {
for _ in 0..<1000 {
let tmp = nsArray as! [NSObject]
blackHole(tmp)
blackHole(tmp.withContiguousStorageIfAvailable {
@@ -872,7 +872,7 @@ public func run_BridgedNSArrayRepeatedBufferAccess(_ n: Int) {
for _ in 0 ..< n {
let tmp = nsArray as! [NSObject]
blackHole(tmp)
for i in 0..<1000 {
for _ in 0..<1000 {
blackHole(tmp.withContiguousStorageIfAvailable {
$0[0]
})