diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-06-27 12:41:07 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-27 12:41:07 +0200 |
| commit | d14bf09d4cf2e0b2d4feabbfdc1dc0860030493e (patch) | |
| tree | 80528e07ffa2e32a061c76fb53b958bb1b8ed1ea /prog/rand.go | |
| parent | 65a34e4c2d820bb42758569a200e94e7a5c781cd (diff) | |
prog: fix PtrType generation
The inner return value can't be nil, arguments are always created now.
Diffstat (limited to 'prog/rand.go')
| -rw-r--r-- | prog/rand.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/prog/rand.go b/prog/rand.go index 815e17f9c..ebebc79f9 100644 --- a/prog/rand.go +++ b/prog/rand.go @@ -742,12 +742,6 @@ func (r *randGen) generateArg(s *state, typ sys.Type) (arg *Arg, calls []*Call) return unionArg(a, opt, optType), calls case *sys.PtrType: inner, calls := r.generateArg(s, a.Type) - if a.Dir() == sys.DirOut && inner == nil { - // No data, but we should have got size. - arg, calls1 := r.addr(s, a, inner.Size(), nil) - calls = append(calls, calls1...) - return arg, calls - } if a.Type.Name() == "iocb" && len(s.resources["iocbptr"]) != 0 { // It is weird, but these are actually identified by kernel by address. // So try to reuse a previously used address. |
