diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-01-04 10:35:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-01-11 16:30:08 +0100 |
| commit | 983508d80442a85b78118e6c6a03d5ae4897e4df (patch) | |
| tree | 4d45c36a95a2ae407fa780a68925e0014c75e7e6 /prog/rotation.go | |
| parent | bad18a53de8fa8d3d097e3d701efb72a014661cb (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.go | 2 |
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 { |
