Skip to content

Commit 2b359d1

Browse files
committed
Prevent an exclusivity benchmark from being optimized too much.
1 parent 04999aa commit 2b359d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/Exclusivity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public func run_accessGlobal(_ N: Int) {
8080
// Hopefully the optimizer will not see this as "final" and optimize away the
8181
// materializeForSet.
8282
public class C {
83-
var counter = 0
83+
public var counter = 0
8484

8585
func inc() {
8686
counter += 1

0 commit comments

Comments
 (0)