aboutsummaryrefslogtreecommitdiffstats
path: root/prog/rotation.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-01-04 10:35:26 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-01-11 16:30:08 +0100
commit983508d80442a85b78118e6c6a03d5ae4897e4df (patch)
tree4d45c36a95a2ae407fa780a68925e0014c75e7e6 /prog/rotation.go
parentbad18a53de8fa8d3d097e3d701efb72a014661cb (diff)
prog: pass ctx by pointer to ForeachType callback
This will allow callbacks to stop iteration early by setting ctx.Stop flag (as it works for ForeachArg).
Diffstat (limited to 'prog/rotation.go')
-rw-r--r--prog/rotation.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/rotation.go b/prog/rotation.go
index 2eca62e55..5651b6e05 100644
--- a/prog/rotation.go
+++ b/prog/rotation.go
@@ -50,7 +50,7 @@ func MakeRotator(target *Target, calls map[*Syscall]bool, rnd *rand.Rand) *Rotat
}
// VMAs and filenames are effectively resources for our purposes
// (but they don't have ctors).
- ForeachCallType(call, func(t Type, _ TypeCtx) {
+ ForeachCallType(call, func(t Type, _ *TypeCtx) {
switch a := t.(type) {
case *BufferType:
switch a.Kind {