diff options
| author | Veronica Radu <veronicaradu@google.com> | 2019-09-10 11:39:54 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-09-23 15:35:26 +0200 |
| commit | 1e9788a0d9bd8fca36978810fd3fc50b6c4f060b (patch) | |
| tree | a74f499ed8ffbb4b92121c34f4fd58a6dfb895f8 /prog/mutation.go | |
| parent | 8491e03fb279f9bf4f3f8678318b4e602355fa84 (diff) | |
prog: add insertionPoint param in generateCall func
Diffstat (limited to 'prog/mutation.go')
| -rw-r--r-- | prog/mutation.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/mutation.go b/prog/mutation.go index b0702ebba..f19813148 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -134,7 +134,7 @@ func (ctx *mutator) insertCall() bool { c = p.Calls[idx] } s := analyze(ctx.ct, ctx.corpus, p, c) - calls := r.generateCall(s, p) + calls := r.generateCall(s, p, idx) // TODO: the program might have more than ncalls p.insertBefore(c, calls) return true |
